aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMax Laier <mlaier@FreeBSD.org>2006-05-20 21:08:09 +0000
committerMax Laier <mlaier@FreeBSD.org>2006-05-20 21:08:09 +0000
commit7a569b90b5738565b6371c3fbfbe16d312e9844b (patch)
tree1532783f647ee2c3eb4fe5651732e79b66ce8631 /sys/dev
parent90967a95ce9406c5bb50b61302a58405bc4d3fe2 (diff)
downloadsrc-7a569b90b5738565b6371c3fbfbe16d312e9844b.tar.gz
src-7a569b90b5738565b6371c3fbfbe16d312e9844b.zip
ALTQ-ify nve(4).
Submitted by: Chris Dionissopoulos Tested by: Chris Dionissopoulos MFC after: 4 weeks
Notes
Notes: svn path=/head/; revision=158773
Diffstat (limited to 'sys/dev')
-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 2f26a9887458..8b014c69ae68 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;