Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2071618
commit 689186699931313c7a42462602bd5c03eef77f9f
Author: Jussi Maki <joamaki@gmail.com>
Date: Sat Jul 31 05:57:36 2021 +0000
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 694cea395f ("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
Signed-off-by: Jiri Benc <jbenc@redhat.com>