summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev/be.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/be.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/be.c')
-rw-r--r--sys/arch/sparc/dev/be.c9
1 files changed, 6 insertions, 3 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