diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2006-09-18 16:20:21 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2006-09-18 16:20:21 +0000 |
commit | e1c588e2d02b401ea45daad353a9a8aa3a670e36 (patch) | |
tree | 624732155d006d7666c3e710d2631b4ebeae6a70 /sys/dev/usb/if_uath.c | |
parent | 42592bef47dd2f43a20c04421e3b5898a9d74ac0 (diff) |
don't use IF_PREPEND() on altq's.
use IFQ_POLL()/IFQ_DEQUEUE() logic instead as described in altq(4).
Diffstat (limited to 'sys/dev/usb/if_uath.c')
-rw-r--r-- | sys/dev/usb/if_uath.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/if_uath.c b/sys/dev/usb/if_uath.c index 086a78a0188..8c3131a7c81 100644 --- a/sys/dev/usb/if_uath.c +++ b/sys/dev/usb/if_uath.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_uath.c,v 1.5 2006/09/18 01:42:30 jsg Exp $ */ +/* $OpenBSD: if_uath.c,v 1.6 2006/09/18 16:20:20 damien Exp $ */ /*- * Copyright (c) 2006 @@ -1507,14 +1507,14 @@ uath_start(struct ifnet *ifp) } else { if (ic->ic_state != IEEE80211_S_RUN) break; - IFQ_DEQUEUE(&ifp->if_snd, m0); + IFQ_POLL(&ifp->if_snd, m0); if (m0 == NULL) break; if (sc->tx_queued >= UATH_TX_DATA_LIST_COUNT) { - IF_PREPEND(&ifp->if_snd, m0); ifp->if_flags |= IFF_OACTIVE; break; } + IFQ_DEQUEUE(&ifp->if_snd, m0); #if NBPFILTER > 0 if (ifp->if_bpf != NULL) bpf_mtap(ifp->if_bpf, m0, BPF_DIRECTION_OUT); |