summaryrefslogtreecommitdiffstats
path: root/sys/dev/nve
diff options
context:
space:
mode:
authormlaier <mlaier@FreeBSD.org>2006-05-20 21:08:09 +0000
committermlaier <mlaier@FreeBSD.org>2006-05-20 21:08:09 +0000
commit344107bff0ece911acd9d48eab70719c8807b43f (patch)
tree1532783f647ee2c3eb4fe5651732e79b66ce8631 /sys/dev/nve
parentdca74a4f08c77cde1eb5dbbd01372d399017ce7c (diff)
downloadFreeBSD-src-344107bff0ece911acd9d48eab70719c8807b43f.zip
FreeBSD-src-344107bff0ece911acd9d48eab70719c8807b43f.tar.gz
ALTQ-ify nve(4).
Submitted by: Chris Dionissopoulos Tested by: Chris Dionissopoulos MFC after: 4 weeks
Diffstat (limited to 'sys/dev/nve')
-rw-r--r--sys/dev/nve/if_nve.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/nve/if_nve.c b/sys/dev/nve/if_nve.c
index 2f26a98..8b014c6 100644
--- a/sys/dev/nve/if_nve.c
+++ b/sys/dev/nve/if_nve.c
@@ -526,7 +526,9 @@ nve_attach(device_t dev)
ifp->if_init = nve_init;
ifp->if_mtu = ETHERMTU;
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;
/* Attach to OS's managers. */
@@ -866,7 +868,7 @@ nve_ifstart_locked(struct ifnet *ifp)
buf = &desc->buf;
/* Get next packet to send. */
- IF_DEQUEUE(&ifp->if_snd, m0);
+ IFQ_DRV_DEQUEUE(&ifp->if_snd, m0);
/* If nothing to send, return. */
if (m0 == NULL)
@@ -945,7 +947,7 @@ nve_ifstart_locked(struct ifnet *ifp)
"nve_ifstart: transmit queue is full\n");
ifp->if_drv_flags |= IFF_DRV_OACTIVE;
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;
return;
OpenPOWER on IntegriCloud