diff options
author | Kuniyuki Iwashima <kuniyu@amazon.com> | 2025-02-07 10:25:02 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-02-11 06:08:53 +0300 |
commit | 88b9cfca8d7735b0e8c809241365577f07c52cb2 (patch) | |
tree | 34ad280320bac8f3366e70c4b80db938180cd88b /tools/testing/selftests/drivers/net/lib/py/env.py | |
parent | 1cf770da01120c0a84d53c4dddc57a62d1ca4f96 (diff) | |
download | linux-88b9cfca8d7735b0e8c809241365577f07c52cb2.tar.xz |
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 <kuniyu@amazon.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Tested-by: Ido Schimmel <idosch@nvidia.com>
Link: https://patch.msgid.link/20250207072502.87775-9-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/drivers/net/lib/py/env.py')
0 files changed, 0 insertions, 0 deletions