aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2020-01-24 17:11:54 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2020-01-24 17:11:54 +0000
commit5ab0c8434a7befeafbaf81e899fc23f660b64c9d (patch)
tree1821113143cfc16faec704430ffd17f64299cb22
parent7106b618d29df4f94f77079d5713f8c95b6c7c60 (diff)
downloadsrc-5ab0c8434a7befeafbaf81e899fc23f660b64c9d.tar.gz
src-5ab0c8434a7befeafbaf81e899fc23f660b64c9d.zip
ath(4) processing input packets in taskqueue. Enter network epoch
before calling ieee80211_input_mimo().
Notes
Notes: svn path=/head/; revision=357088
-rw-r--r--sys/dev/ath/if_ath_rx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath_rx.c b/sys/dev/ath/if_ath_rx.c
index 93a1d7455191..13a42c5038d6 100644
--- a/sys/dev/ath/if_ath_rx.c
+++ b/sys/dev/ath/if_ath_rx.c
@@ -647,6 +647,7 @@ ath_rx_pkt(struct ath_softc *sc, struct ath_rx_status *rs, HAL_STATUS status,
uint64_t tsf, int nf, HAL_RX_QUEUE qtype, struct ath_buf *bf,
struct mbuf *m)
{
+ struct epoch_tracker et;
uint64_t rstamp;
/* XXX TODO: make this an mbuf tag? */
struct ieee80211_rx_stats rxs;
@@ -941,6 +942,7 @@ rx_accept:
rxs.c_nf_ext[i] = nf;
}
+ NET_EPOCH_ENTER(et);
if (ni != NULL) {
/*
* Only punt packets for ampdu reorder processing for
@@ -986,6 +988,7 @@ rx_accept:
type = ieee80211_input_mimo_all(ic, m);
m = NULL;
}
+ NET_EPOCH_EXIT(et);
/*
* At this point we have passed the frame up the stack; thus