diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2001-07-30 21:50:07 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2001-07-30 21:50:07 +0000 |
commit | 96fe3d8fb50bfeceb11fa08557811c713d0413b7 (patch) | |
tree | a808feaf6d7271641bcb029f4e206b12d06c4f89 /sys/arch/sparc | |
parent | 703a3afee691a219f2e7466ad6055373ac5410b6 (diff) |
convert to ALTQ style macros (these drivers appear to meet the criteria for
ALTQ, anyone more familiar with it wanna have a look?)
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r-- | sys/arch/sparc/dev/be.c | 9 | ||||
-rw-r--r-- | sys/arch/sparc/dev/hme.c | 6 | ||||
-rw-r--r-- | sys/arch/sparc/dev/qe.c | 9 |
3 files changed, 16 insertions, 8 deletions
diff --git a/sys/arch/sparc/dev/be.c b/sys/arch/sparc/dev/be.c index 3ed88aaabc3..4b0f7d0f86a 100644 --- a/sys/arch/sparc/dev/be.c +++ b/sys/arch/sparc/dev/be.c @@ -1,4 +1,4 @@ -/* $OpenBSD: be.c,v 1.27 2001/06/26 21:58:47 fgsch Exp $ */ +/* $OpenBSD: be.c,v 1.28 2001/07/30 21:50:06 jason Exp $ */ /* * Copyright (c) 1998 Theo de Raadt and Jason L. Wright. @@ -219,6 +219,9 @@ beattach(parent, self, aux) ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_NOTRAILERS | IFF_MULTICAST; + IFQ_SET_MAXLEN(&ifp->if_snd, BE_TX_RING_SIZE); + IFQ_SET_READY(&ifp->if_snd); + /* Attach the interface. */ if_attach(ifp); ether_ifattach(ifp); @@ -255,8 +258,8 @@ bestart(ifp) bix = sc->sc_last_td; for (;;) { - IF_DEQUEUE(&ifp->if_snd, m); - if (m == 0) + IFQ_DEQUEUE(&ifp->if_snd, m); + if (m == NULL) break; #if NBPFILTER > 0 diff --git a/sys/arch/sparc/dev/hme.c b/sys/arch/sparc/dev/hme.c index 8392ae63e52..e4972dc5107 100644 --- a/sys/arch/sparc/dev/hme.c +++ b/sys/arch/sparc/dev/hme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hme.c,v 1.32 2001/06/26 21:58:48 fgsch Exp $ */ +/* $OpenBSD: hme.c,v 1.33 2001/07/30 21:50:06 jason Exp $ */ /* * Copyright (c) 1998 Jason L. Wright (jason@thought.net) @@ -246,6 +246,8 @@ hmeattach(parent, self, aux) ifp->if_watchdog = hmewatchdog; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_NOTRAILERS | IFF_MULTICAST; + IFQ_SET_MAXLEN(&ifp->if_snd, HME_TX_RING_SIZE); + IFQ_SET_READY(&ifp->if_snd); /* Attach the interface. */ if_attach(ifp); @@ -275,7 +277,7 @@ hmestart(ifp) bix = sc->sc_last_td; for (;;) { - IF_DEQUEUE(&ifp->if_snd, m); + IFQ_DEQUEUE(&ifp->if_snd, m); if (m == NULL) break; #if NBPFILTER > 0 diff --git a/sys/arch/sparc/dev/qe.c b/sys/arch/sparc/dev/qe.c index 24d02053d54..6b8cb9c2f94 100644 --- a/sys/arch/sparc/dev/qe.c +++ b/sys/arch/sparc/dev/qe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: qe.c,v 1.16 2001/06/26 21:58:48 fgsch Exp $ */ +/* $OpenBSD: qe.c,v 1.17 2001/07/30 21:50:06 jason Exp $ */ /* * Copyright (c) 1998, 2000 Jason L. Wright. @@ -170,6 +170,9 @@ qeattach(parent, self, aux) IFM_MAKEWORD(IFM_ETHER, IFM_10_T, 0, 0), 0, NULL); ifmedia_set(&sc->sc_ifmedia, IFM_ETHER | IFM_10_T); + IFQ_SET_MAXLEN(&ifp->if_snd, QE_TX_RING_SIZE); + IFQ_SET_READY(&ifp->if_snd); + /* Attach the interface. */ if_attach(ifp); ether_ifattach(ifp); @@ -206,8 +209,8 @@ qestart(ifp) bix = sc->sc_last_td; for (;;) { - IF_DEQUEUE(&ifp->if_snd, m); - if (m == 0) + IFQ_DEQUEUE(&ifp->if_snd, m); + if (m == NULL) break; #if NBPFILTER > 0 |