[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CANn89i+851PahsD9TLpqfWqmSLsG0nc=8sSD=0AQQgmRcp4zgQ@mail.gmail.com>
Date: Thu, 27 Feb 2025 09:23:41 +0100
From: Eric Dumazet <edumazet@...gle.com>
To: Kuniyuki Iwashima <kuniyu@...zon.com>
Cc: "David S. Miller" <davem@...emloft.net>, David Ahern <dsahern@...nel.org>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>, Simon Horman <horms@...nel.org>,
Kuniyuki Iwashima <kuni1840@...il.com>, netdev@...r.kernel.org
Subject: Re: [PATCH v2 net-next 03/12] ipv4: fib: Allocate fib_info_hash[]
during netns initialisation.
On Wed, Feb 26, 2025 at 8:30 PM Kuniyuki Iwashima <kuniyu@...zon.com> wrote:
>
> We will allocate fib_info_hash[] and fib_info_laddrhash[] for each netns.
>
> Currently, fib_info_hash[] is allocated when the first route is added.
>
> Let's move the first allocation to a new __net_init function.
>
> Note that we must call fib4_semantics_exit() in fib_net_exit_batch()
> because ->exit() is called earlier than ->exit_batch().
>
> Signed-off-by: Kuniyuki Iwashima <kuniyu@...zon.com>
> ---
Reviewed-by: Eric Dumazet <edumazet@...gle.com>
Powered by blists - more mailing lists