]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ipv4: Use per-netns RTNL helpers in inet_rtm_newaddr().
authorKuniyuki Iwashima <kuniyu@amazon.com>
Mon, 21 Oct 2024 18:32:33 +0000 (11:32 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 29 Oct 2024 10:54:57 +0000 (11:54 +0100)
commitd4b483208b2606add41a22bdd3c8cd6d36009319
treeeb52262426f7dfcf2b5e556d97fb7a5b22d23fd0
parent487257786b71172648664164ba567e807e1e11fc
ipv4: Use per-netns RTNL helpers in inet_rtm_newaddr().

inet_rtm_to_ifa() and find_matching_ifa() are called
under rtnl_net_lock().

__in_dev_get_rtnl() and in_dev_for_each_ifa_rtnl() there
can use per-netns RTNL helpers.

Let's define and use __in_dev_get_rtnl_net() and
in_dev_for_each_ifa_rtnl_net().

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/linux/inetdevice.h
net/ipv4/devinet.c