Commit ALTQ-patch for ed(4).

Requested and tested by:	pav
MFC after:			1 week
This commit is contained in:
mlaier 2004-11-21 02:42:09 +00:00
parent 7a1c331305
commit 0ccf8f0d91
2 changed files with 6 additions and 3 deletions

View File

@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
.Dd November 12, 2004
.Dd November 21, 2004
.Dt ALTQ 4
.Os
.Sh NAME
@ -112,6 +112,7 @@ They have been applied to the following hardware drivers:
.Xr bfe 4 ,
.Xr bge 4 ,
.Xr dc 4 ,
.Xr ed 4 ,
.Xr em 4 ,
.Xr fxp 4 ,
.Xr hme 4 ,

View File

@ -1720,7 +1720,9 @@ ed_attach(dev)
ifp->if_ioctl = ed_ioctl;
ifp->if_watchdog = ed_watchdog;
ifp->if_init = ed_init;
ifp->if_snd.ifq_maxlen = IFQ_MAXLEN;
IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN);
ifp->if_snd.ifq_drv_maxlen = IFQ_MAXLEN;
IFQ_SET_READY(&ifp->if_snd);
ifp->if_linkmib = &sc->mibdata;
ifp->if_linkmiblen = sizeof sc->mibdata;
/*
@ -2122,7 +2124,7 @@ ed_start(ifp)
ifp->if_flags |= IFF_OACTIVE;
return;
}
IF_DEQUEUE(&ifp->if_snd, m);
IFQ_DRV_DEQUEUE(&ifp->if_snd, m);
if (m == 0) {
/*