aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/drivers/net/hw/ncdevmem.c
diff options
context:
space:
mode:
authorKuniyuki Iwashima <[email protected]>2025-02-07 07:25:02 +0000
committerJakub Kicinski <[email protected]>2025-02-11 03:08:53 +0000
commit88b9cfca8d7735b0e8c809241365577f07c52cb2 (patch)
tree34ad280320bac8f3366e70c4b80db938180cd88b /tools/testing/selftests/drivers/net/hw/ncdevmem.c
parentnet: fib_rules: Add error_free label in fib_delrule(). (diff)
downloadkernel-88b9cfca8d7735b0e8c809241365577f07c52cb2.tar.gz
kernel-88b9cfca8d7735b0e8c809241365577f07c52cb2.zip
net: fib_rules: Convert RTM_DELRULE to per-netns RTNL.
fib_nl_delrule() is the doit() handler for RTM_DELRULE but also called from vrf_newlink() in case something fails in vrf_add_fib_rules(). In the latter case, RTNL is already held and the 4th arg is true. Let's hold per-netns RTNL in fib_delrule() if rtnl_held is false. Now we can place ASSERT_RTNL_NET() in call_fib_rule_notifiers(). Signed-off-by: Kuniyuki Iwashima <[email protected]> Reviewed-by: Eric Dumazet <[email protected]> Reviewed-by: Ido Schimmel <[email protected]> Tested-by: Ido Schimmel <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/drivers/net/hw/ncdevmem.c')
0 files changed, 0 insertions, 0 deletions