MFC:
ALTQ-ify nve(4). Submitted by: Chris Dionissopoulos
This commit is contained in:
parent
b1311a5d14
commit
5086a51b85
@ -25,7 +25,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd January 31, 2006
|
.Dd May 20, 2006
|
||||||
.Dt ALTQ 4
|
.Dt ALTQ 4
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -128,6 +128,7 @@ They have been applied to the following hardware drivers:
|
|||||||
.Xr hme 4 ,
|
.Xr hme 4 ,
|
||||||
.Xr le 4 ,
|
.Xr le 4 ,
|
||||||
.Xr lnc 4 ,
|
.Xr lnc 4 ,
|
||||||
|
.Xr nve 4 ,
|
||||||
.Xr re 4 ,
|
.Xr re 4 ,
|
||||||
.Xr rl 4 ,
|
.Xr rl 4 ,
|
||||||
.Xr sf 4 ,
|
.Xr sf 4 ,
|
||||||
|
@ -521,7 +521,9 @@ nve_attach(device_t dev)
|
|||||||
ifp->if_init = nve_init;
|
ifp->if_init = nve_init;
|
||||||
ifp->if_mtu = ETHERMTU;
|
ifp->if_mtu = ETHERMTU;
|
||||||
ifp->if_baudrate = IF_Mbps(100);
|
ifp->if_baudrate = IF_Mbps(100);
|
||||||
ifp->if_snd.ifq_maxlen = TX_RING_SIZE - 1;
|
IFQ_SET_MAXLEN(&ifp->if_snd, TX_RING_SIZE - 1);
|
||||||
|
ifp->if_snd.ifq_drv_maxlen = TX_RING_SIZE - 1;
|
||||||
|
IFQ_SET_READY(&ifp->if_snd);
|
||||||
ifp->if_capabilities |= IFCAP_VLAN_MTU;
|
ifp->if_capabilities |= IFCAP_VLAN_MTU;
|
||||||
|
|
||||||
/* Attach to OS's managers. */
|
/* Attach to OS's managers. */
|
||||||
@ -861,7 +863,7 @@ nve_ifstart_locked(struct ifnet *ifp)
|
|||||||
buf = &desc->buf;
|
buf = &desc->buf;
|
||||||
|
|
||||||
/* Get next packet to send. */
|
/* Get next packet to send. */
|
||||||
IF_DEQUEUE(&ifp->if_snd, m0);
|
IFQ_DRV_DEQUEUE(&ifp->if_snd, m0);
|
||||||
|
|
||||||
/* If nothing to send, return. */
|
/* If nothing to send, return. */
|
||||||
if (m0 == NULL)
|
if (m0 == NULL)
|
||||||
@ -940,7 +942,7 @@ nve_ifstart_locked(struct ifnet *ifp)
|
|||||||
"nve_ifstart: transmit queue is full\n");
|
"nve_ifstart: transmit queue is full\n");
|
||||||
ifp->if_drv_flags |= IFF_DRV_OACTIVE;
|
ifp->if_drv_flags |= IFF_DRV_OACTIVE;
|
||||||
bus_dmamap_unload(sc->mtag, buf->map);
|
bus_dmamap_unload(sc->mtag, buf->map);
|
||||||
IF_PREPEND(&ifp->if_snd, buf->mbuf);
|
IFQ_DRV_PREPEND(&ifp->if_snd, buf->mbuf);
|
||||||
buf->mbuf = NULL;
|
buf->mbuf = NULL;
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user