summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev/qe.c
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2001-07-30 21:50:07 +0000
committerJason Wright <jason@cvs.openbsd.org>2001-07-30 21:50:07 +0000
commit96fe3d8fb50bfeceb11fa08557811c713d0413b7 (patch)
treea808feaf6d7271641bcb029f4e206b12d06c4f89 /sys/arch/sparc/dev/qe.c
parent703a3afee691a219f2e7466ad6055373ac5410b6 (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/dev/qe.c')
-rw-r--r--sys/arch/sparc/dev/qe.c9
1 files changed, 6 insertions, 3 deletions
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