rtnetlink: allow rtnl_fill_link_netnsid() to run under RCU protection
authorEric Dumazet <edumazet@google.com>
Fri, 3 May 2024 19:20:59 +0000 (19:20 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 7 May 2024 09:14:50 +0000 (11:14 +0200)
commit9cf621bd5fcbeadc2804951d13d487e22e95b363
tree04a9eea4366aa75be0d1011dbe90e04ded85a3ad
parent979aad40da9217d5e907ee4ad7c7f0dc555944a7
rtnetlink: allow rtnl_fill_link_netnsid() to run under RCU protection

We want to be able to run rtnl_fill_ifinfo() under RCU protection
instead of RTNL in the future.

All rtnl_link_ops->get_link_net() methods already using dev_net()
are ready. I added READ_ONCE() annotations on others.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ppp/ppp_generic.c
drivers/net/vxlan/vxlan_core.c
net/core/rtnetlink.c
net/ipv4/ip_tunnel.c
net/ipv6/ip6_tunnel.c
net/xfrm/xfrm_interface_core.c