]> git.baikalelectronics.ru Git - kernel.git/commit
net, core: Allow netdev_lower_get_next_private_rcu in bh context
authorJussi Maki <joamaki@gmail.com>
Sat, 31 Jul 2021 05:57:36 +0000 (05:57 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 9 Aug 2021 21:25:15 +0000 (23:25 +0200)
commitac5f523f655b0f42d0198dd3c1df818836fcd97b
treee21f16c6a55ad82da50fb0d88da91de099393005
parent0d0255411425882022bcd756aed19edba0b22ee8
net, core: Allow netdev_lower_get_next_private_rcu in bh context

For the XDP bonding slave lookup to work in the NAPI poll context in which
the redudant rcu_read_lock() has been removed we have to follow the same
approach as in 8c1b56086aa2 ("bpf: Allow RCU-protected lookups to happen
from bh context") and modify the WARN_ON to also check rcu_read_lock_bh_held().

Signed-off-by: Jussi Maki <joamaki@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Cc: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://lore.kernel.org/bpf/20210731055738.16820-6-joamaki@gmail.com
net/core/dev.c