Remember to initialize ifp->if_snd.ifq_maxlen.

This commit is contained in:
Bill Paul 1999-02-01 21:25:52 +00:00
parent 240c6baa11
commit e8354668bd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=43515
9 changed files with 27 additions and 20 deletions

View File

@ -29,7 +29,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: if_vr.c,v 1.16 1999/01/10 18:06:10 wpaul Exp $
* $Id: if_vr.c,v 1.7 1999/01/10 18:51:49 wpaul Exp $
*/
/*
@ -97,7 +97,7 @@
#ifndef lint
static const char rcsid[] =
"$Id: if_vr.c,v 1.16 1999/01/10 18:06:10 wpaul Exp $";
"$Id: if_vr.c,v 1.7 1999/01/10 18:51:49 wpaul Exp $";
#endif
/*
@ -1044,6 +1044,7 @@ vr_attach(config_id, unit)
ifp->if_watchdog = vr_watchdog;
ifp->if_init = vr_init;
ifp->if_baudrate = 10000000;
ifp->if_snd.ifq_maxlen = VR_TX_LIST_CNT - 1;
if (bootverbose)
printf("vr%d: probing for a PHY\n", sc->vr_unit);

View File

@ -29,7 +29,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: if_ax.c,v 1.3 1999/01/16 20:40:52 wpaul Exp $
* $Id: if_ax.c,v 1.4 1999/01/28 00:57:52 dillon Exp $
*/
/*
@ -87,7 +87,7 @@
#ifndef lint
static const char rcsid[] =
"$Id: if_ax.c,v 1.3 1999/01/16 20:40:52 wpaul Exp $";
"$Id: if_ax.c,v 1.4 1999/01/28 00:57:52 dillon Exp $";
#endif
/*
@ -1213,7 +1213,7 @@ ax_attach(config_id, unit)
ifp->if_watchdog = ax_watchdog;
ifp->if_init = ax_init;
ifp->if_baudrate = 10000000;
ifp->if_snd.ifq_maxlen = AX_TX_LIST_CNT - 1;
if (bootverbose)
printf("ax%d: probing for a PHY\n", sc->ax_unit);

View File

@ -29,7 +29,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: if_mx.c,v 1.9 1999/01/27 23:45:42 dillon Exp $
* $Id: if_mx.c,v 1.10 1999/01/28 00:57:53 dillon Exp $
*/
/*
@ -94,7 +94,7 @@
#ifndef lint
static const char rcsid[] =
"$Id: if_mx.c,v 1.9 1999/01/27 23:45:42 dillon Exp $";
"$Id: if_mx.c,v 1.10 1999/01/28 00:57:53 dillon Exp $";
#endif
/*
@ -1434,7 +1434,7 @@ mx_attach(config_id, unit)
ifp->if_watchdog = mx_watchdog;
ifp->if_init = mx_init;
ifp->if_baudrate = 10000000;
ifp->if_snd.ifq_maxlen = MX_TX_LIST_CNT - 1;
if (sc->mx_type == MX_TYPE_98713) {
if (bootverbose)

View File

@ -29,7 +29,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: if_pn.c,v 1.36 1999/01/05 00:47:25 wpaul Exp $
* $Id: if_pn.c,v 1.6 1999/01/05 00:59:08 wpaul Exp $
*/
/*
@ -97,7 +97,7 @@
#ifndef lint
static const char rcsid[] =
"$Id: if_pn.c,v 1.36 1999/01/05 00:47:25 wpaul Exp $";
"$Id: if_pn.c,v 1.6 1999/01/05 00:59:08 wpaul Exp $";
#endif
/*
@ -937,6 +937,7 @@ pn_attach(config_id, unit)
ifp->if_watchdog = pn_watchdog;
ifp->if_init = pn_init;
ifp->if_baudrate = 10000000;
ifp->if_snd.ifq_maxlen = PN_TX_LIST_CNT - 1;
if (bootverbose)
printf("pn%d: probing for a PHY\n", sc->pn_unit);

View File

@ -29,7 +29,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: if_rl.c,v 1.20 1999/01/16 20:46:24 wpaul Exp wpaul $
* $Id: if_rl.c,v 1.10 1999/01/22 15:25:04 wpaul Exp $
*/
/*
@ -127,7 +127,7 @@
#ifndef lint
static const char rcsid[] =
"$Id: if_rl.c,v 1.20 1999/01/16 20:46:24 wpaul Exp wpaul $";
"$Id: if_rl.c,v 1.10 1999/01/22 15:25:04 wpaul Exp $";
#endif
/*
@ -1150,6 +1150,7 @@ rl_attach(config_id, unit)
ifp->if_watchdog = rl_watchdog;
ifp->if_init = rl_init;
ifp->if_baudrate = 10000000;
ifp->if_snd.ifq_maxlen = RL_TX_LIST_CNT - 1;
if (sc->rl_type == RL_8129) {
if (bootverbose)

View File

@ -29,7 +29,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: if_tl.c,v 1.24 1998/12/29 15:39:35 wpaul Exp $
* $Id: if_tl.c,v 1.25 1999/01/26 15:18:26 wpaul Exp $
*/
/*
@ -218,7 +218,7 @@
#if !defined(lint)
static const char rcsid[] =
"$Id: if_tl.c,v 1.24 1998/12/29 15:39:35 wpaul Exp $";
"$Id: if_tl.c,v 1.25 1999/01/26 15:18:26 wpaul Exp $";
#endif
#ifdef TL_DEBUG
@ -1718,6 +1718,7 @@ tl_attach(config_id, unit)
ifp->if_watchdog = tl_watchdog;
ifp->if_init = tl_init;
ifp->if_mtu = ETHERMTU;
ifp->if_snd.ifq_maxlen = TL_TX_LIST_CNT - 1;
callout_handle_init(&sc->tl_stat_ch);
/* Reset the adapter again. */

View File

@ -29,7 +29,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: if_vr.c,v 1.16 1999/01/10 18:06:10 wpaul Exp $
* $Id: if_vr.c,v 1.7 1999/01/10 18:51:49 wpaul Exp $
*/
/*
@ -97,7 +97,7 @@
#ifndef lint
static const char rcsid[] =
"$Id: if_vr.c,v 1.16 1999/01/10 18:06:10 wpaul Exp $";
"$Id: if_vr.c,v 1.7 1999/01/10 18:51:49 wpaul Exp $";
#endif
/*
@ -1044,6 +1044,7 @@ vr_attach(config_id, unit)
ifp->if_watchdog = vr_watchdog;
ifp->if_init = vr_init;
ifp->if_baudrate = 10000000;
ifp->if_snd.ifq_maxlen = VR_TX_LIST_CNT - 1;
if (bootverbose)
printf("vr%d: probing for a PHY\n", sc->vr_unit);

View File

@ -29,7 +29,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: if_wb.c,v 1.36 1999/01/16 05:28:52 wpaul Exp $
* $Id: if_wb.c,v 1.6 1999/01/16 06:25:58 wpaul Exp $
*/
/*
@ -121,7 +121,7 @@
#ifndef lint
static const char rcsid[] =
"$Id: if_wb.c,v 1.36 1999/01/16 05:28:52 wpaul Exp $";
"$Id: if_wb.c,v 1.6 1999/01/16 06:25:58 wpaul Exp $";
#endif
/*
@ -1167,6 +1167,7 @@ wb_attach(config_id, unit)
ifp->if_watchdog = wb_watchdog;
ifp->if_init = wb_init;
ifp->if_baudrate = 10000000;
ifp->if_snd.ifq_maxlen = WB_TX_LIST_CNT - 1;
if (bootverbose)
printf("wb%d: probing for a PHY\n", sc->wb_unit);

View File

@ -29,7 +29,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: if_xl.c,v 1.21 1998/12/14 06:32:57 dillon Exp $
* $Id: if_xl.c,v 1.22 1998/12/24 17:50:34 wpaul Exp $
*/
/*
@ -147,7 +147,7 @@
#if !defined(lint)
static const char rcsid[] =
"$Id: if_xl.c,v 1.21 1998/12/14 06:32:57 dillon Exp $";
"$Id: if_xl.c,v 1.22 1998/12/24 17:50:34 wpaul Exp $";
#endif
/*
@ -1462,6 +1462,7 @@ xl_attach(config_id, unit)
ifp->if_watchdog = xl_watchdog;
ifp->if_init = xl_init;
ifp->if_baudrate = 10000000;
ifp->if_snd.ifq_maxlen = XL_TX_LIST_CNT - 1;
/*
* Figure out the card type. 3c905B adapters have the