summaryrefslogtreecommitdiffstats
path: root/sys/dev/hme
diff options
context:
space:
mode:
authormlaier <mlaier@FreeBSD.org>2004-08-01 23:58:04 +0000
committermlaier <mlaier@FreeBSD.org>2004-08-01 23:58:04 +0000
commit14a50c4ac0247a8950847156b4fc16cf935c14ca (patch)
tree6ebb50d212d74e6c2bdec898a448d868eb8edfb1 /sys/dev/hme
parentb0892abf37d766a8598aa74f40cb2e7585bca172 (diff)
downloadFreeBSD-src-14a50c4ac0247a8950847156b4fc16cf935c14ca.zip
FreeBSD-src-14a50c4ac0247a8950847156b4fc16cf935c14ca.tar.gz
Second part of ALTQ driver modifications, covering:
an(4), ath(4), hme(4), ndis(4), vr(4) and wi(4) Please help testing: http://people.freebsd.org/~mlaier/ALTQ_driver/ Tested by: Vaidas Damosevicius (an, ath, wi) Roman Divacky (vr) Submitted by: yongari (hme)
Diffstat (limited to 'sys/dev/hme')
-rw-r--r--sys/dev/hme/if_hme.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/hme/if_hme.c b/sys/dev/hme/if_hme.c
index cd9e617..7144799 100644
--- a/sys/dev/hme/if_hme.c
+++ b/sys/dev/hme/if_hme.c
@@ -276,7 +276,9 @@ hme_config(struct hme_softc *sc)
ifp->if_ioctl = hme_ioctl;
ifp->if_init = hme_init;
ifp->if_watchdog = hme_watchdog;
- ifp->if_snd.ifq_maxlen = HME_NTXQ;
+ IFQ_SET_MAXLEN(&ifp->if_snd, HME_NTXQ);
+ ifp->if_snd.ifq_drv_maxlen = HME_NTXQ;
+ IFQ_SET_READY(&ifp->if_snd);
hme_mifinit(sc);
@@ -1002,14 +1004,14 @@ hme_start(struct ifnet *ifp)
error = 0;
for (;;) {
- IF_DEQUEUE(&ifp->if_snd, m);
+ IFQ_DRV_DEQUEUE(&ifp->if_snd, m);
if (m == NULL)
break;
error = hme_load_txmbuf(sc, m);
if (error == -1) {
ifp->if_flags |= IFF_OACTIVE;
- IF_PREPEND(&ifp->if_snd, m);
+ IFQ_DRV_PREPEND(&ifp->if_snd, m);
break;
} else if (error > 0) {
printf("hme_start: error %d while loading mbuf\n",
OpenPOWER on IntegriCloud