diff options
author | Masao Uebayashi <uebayasi@cvs.openbsd.org> | 2015-10-05 19:05:10 +0000 |
---|---|---|
committer | Masao Uebayashi <uebayasi@cvs.openbsd.org> | 2015-10-05 19:05:10 +0000 |
commit | 06158c5263773e7616cc1f4acad4eb541edac78b (patch) | |
tree | d6b055d0ad05af5616a56d23e26d27134e4e3919 /sys/net80211 | |
parent | 9679852c2bf6b6b06d5621959028e4cf4c89f128 (diff) |
Revert if_oqdrops accounting changes done in kernel, per request from mpi@.
(Especially adding IF_DROP() after IFQ_ENQUEUE() was completely wrong because
IFQ_ENQUEUE() already does it. Oops.)
After this revert, the situation becomes:
- if_snd.ifq_drops is incremented in either IFQ_ENQUEUE() or IF_DROP(), but
it is not shown to userland, and
- if_data.ifi_oqdrops is shown to userland, but it is not incremented by
anyone.
Diffstat (limited to 'sys/net80211')
-rw-r--r-- | sys/net80211/ieee80211_pae_output.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/net80211/ieee80211_pae_output.c b/sys/net80211/ieee80211_pae_output.c index 4e534656ba0..eb293610247 100644 --- a/sys/net80211/ieee80211_pae_output.c +++ b/sys/net80211/ieee80211_pae_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_pae_output.c,v 1.22 2015/10/05 15:57:27 uebayasi Exp $ */ +/* $OpenBSD: ieee80211_pae_output.c,v 1.23 2015/10/05 19:05:09 uebayasi Exp $ */ /*- * Copyright (c) 2007,2008 Damien Bergamini <damien.bergamini@free.fr> @@ -131,8 +131,7 @@ ieee80211_send_eapol_key(struct ieee80211com *ic, struct mbuf *m, ifp->if_obytes += len; if ((ifp->if_flags & IFF_OACTIVE) == 0) (*ifp->if_start)(ifp); - } else - IF_DROP(&ifp->if_snd); + } splx(s); return error; |