[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANn89iLq5nrh9FQoGO_Dwi6ThS0UELEGpgRVuexV9gRF8HU+jg@mail.gmail.com>
Date: Fri, 18 Oct 2024 15:52:59 +0200
From: Eric Dumazet <edumazet@...gle.com>
To: Kuniyuki Iwashima <kuniyu@...zon.com>
Cc: "David S. Miller" <davem@...emloft.net>, Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>, David Ahern <dsahern@...nel.org>,
Kuniyuki Iwashima <kuni1840@...il.com>, netdev@...r.kernel.org
Subject: Re: [PATCH v1 net-next 05/11] ipv4: Use per-netns RTNL helpers in inet_rtm_newaddr().
On Fri, Oct 18, 2024 at 3:24 AM Kuniyuki Iwashima <kuniyu@...zon.com> wrote:
>
> 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@...zon.com>
Reviewed-by: Eric Dumazet <edumazet@...gle.com>
Powered by blists - more mailing lists