summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/if_uath.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2015-11-04 12:11:59 +0000
committerdlg <dlg@openbsd.org>2015-11-04 12:11:59 +0000
commit351e1934c2099e25d34ae49fa59b7275f24892c3 (patch)
treee51a56981b6c0e9162caa898eb8044d35ab90853 /sys/dev/usb/if_uath.c
parentsome fixes from raf czlonka (diff)
downloadwireguard-openbsd-351e1934c2099e25d34ae49fa59b7275f24892c3.tar.xz
wireguard-openbsd-351e1934c2099e25d34ae49fa59b7275f24892c3.zip
replace the ifqueues in net80211 with mbuf_queues.
the specific queues are ic_mgtq, ic_pwrsaveq, and ni_savedq. rtw had its own queue for beacons. tested by mpi@ and jmc@ ok mpi@
Diffstat (limited to 'sys/dev/usb/if_uath.c')
-rw-r--r--sys/dev/usb/if_uath.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/if_uath.c b/sys/dev/usb/if_uath.c
index 0a044f36bf2..84293ed3806 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.70 2015/10/25 12:11:56 mpi Exp $ */
+/* $OpenBSD: if_uath.c,v 1.71 2015/11/04 12:12:00 dlg Exp $ */
/*-
* Copyright (c) 2006
@@ -1477,13 +1477,13 @@ uath_start(struct ifnet *ifp)
return;
for (;;) {
- IF_POLL(&ic->ic_mgtq, m0);
+ m0 = mq_dequeue(&ic->ic_mgtq);
if (m0 != NULL) {
if (sc->tx_queued >= UATH_TX_DATA_LIST_COUNT) {
+ mq_requeue(&ic->ic_mgtq, m0);
ifp->if_flags |= IFF_OACTIVE;
break;
}
- IF_DEQUEUE(&ic->ic_mgtq, m0);
ni = m0->m_pkthdr.ph_cookie;
#if NBPFILTER > 0