mirror_ubuntu-kernels/drivers/net/ethernet/qlogic/qede
Toke Høiland-Jørgensen 4415db6ca8 qede: Remove rcu_read_lock() around XDP program invocation
The qede driver has rcu_read_lock()/rcu_read_unlock() pairs around XDP
program invocations. However, the actual lifetime of the objects referred
by the XDP program invocation is longer, all the way through to the call to
xdp_do_flush(), making the scope of the rcu_read_lock() too small. This
turns out to be harmless because it all happens in a single NAPI poll
cycle (and thus under local_bh_disable()), but it makes the rcu_read_lock()
misleading.

Rather than extend the scope of the rcu_read_lock(), just get rid of it
entirely. 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 it around.

Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Cc: Ariel Elior <aelior@marvell.com>
Cc: gr-everest-linux-l2@marvell.com
Link: https://lore.kernel.org/bpf/20210624160609.292325-16-toke@redhat.com
2021-06-24 19:45:39 +02:00
..
Makefile net: qede: update copyright years 2020-06-30 15:51:40 -07:00
qede_dcbnl.c net: qede: update copyright years 2020-06-30 15:51:40 -07:00
qede_ethtool.c qede: preserve per queue stats across up/down of interface 2021-02-11 14:25:06 -08:00
qede_filter.c net: qede: Disable aRFS for NPAR and 100G 2020-09-09 14:28:18 -07:00
qede_fp.c qede: Remove rcu_read_lock() around XDP program invocation 2021-06-24 19:45:39 +02:00
qede_main.c qede: remove unused including <linux/version.h> 2021-03-25 16:58:16 -07:00
qede_ptp.c net: qede: fix kernel-doc for qede_ptp_adjfreq() 2020-07-06 13:18:56 -07:00
qede_ptp.h net: qede: update copyright years 2020-06-30 15:51:40 -07:00
qede_rdma.c net: qede: Use list_for_each_entry() to simplify code 2021-06-08 16:31:24 -07:00
qede.h qede: preserve per queue stats across up/down of interface 2021-02-11 14:25:06 -08:00