aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorToke Høiland-Jørgensen <[email protected]>2021-06-24 18:06:07 +0200
committerDaniel Borkmann <[email protected]>2021-06-24 19:46:12 +0200
commit7b6ee873ff20c22af355661b241defa7f6ed7582 (patch)
treeb6da2f486bf7f2f4c65f6bef23aab6793f11a3ff /tools/perf/scripts/python/check-perf-trace.py
parent4eb14e3fc6197b7205069ed4e2b31eafa11a0697 (diff)
netsec: Remove rcu_read_lock() around XDP program invocation
The netsec driver has a rcu_read_lock()/rcu_read_unlock() pair around the full RX loop, covering everything up to and including xdp_do_flush(). This is actually the correct behaviour, but because it all happens in a single NAPI poll cycle (and thus under local_bh_disable()), it is also technically redundant. With the addition of RCU annotations to the XDP_REDIRECT map types that take bh execution into account, lockdep even understands this to be safe, so there's really no reason to keep the rcu_read_lock() around anymore, so let's just remove it. Signed-off-by: Toke Høiland-Jørgensen <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Ilias Apalodimas <[email protected]> Cc: Jassi Brar <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions