aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/rtnl_net_debug.c
diff options
context:
space:
mode:
authorKuniyuki Iwashima <[email protected]>2024-10-04 22:10:30 +0000
committerPaolo Abeni <[email protected]>2024-10-08 13:16:59 +0000
commit844e5e7e656d3a7a904fd5607f8491d6fd01db8e (patch)
treebf13b2e6a9eef002859dad012b618c5431ab67a4 /net/core/rtnl_net_debug.c
parentrtnetlink: Add per-netns RTNL. (diff)
downloadkernel-844e5e7e656d3a7a904fd5607f8491d6fd01db8e.tar.gz
kernel-844e5e7e656d3a7a904fd5607f8491d6fd01db8e.zip
rtnetlink: Add assertion helpers for per-netns RTNL.
Once an RTNL scope is converted with rtnl_net_lock(), we will replace RTNL helper functions inside the scope with the following per-netns alternatives: ASSERT_RTNL() -> ASSERT_RTNL_NET(net) rcu_dereference_rtnl(p) -> rcu_dereference_rtnl_net(net, p) Note that the per-netns helpers are equivalent to the conventional helpers unless CONFIG_DEBUG_NET_SMALL_RTNL is enabled. Signed-off-by: Kuniyuki Iwashima <[email protected]> Reviewed-by: Eric Dumazet <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/core/rtnl_net_debug.c')
0 files changed, 0 insertions, 0 deletions