diff options
Diffstat (limited to 'sys/arch/sparc/dev/be.c')
-rw-r--r-- | sys/arch/sparc/dev/be.c | 9 |
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 |