[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANn89i+LRXpfX-Hh0oHPKBHbona-g8XjxANK8icWs9i8tfJaSQ@mail.gmail.com>
Date: Wed, 26 Feb 2025 12:22:01 +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 v1 net-next 08/12] ipv4: fib: Namespacify fib_info hash tables.
On Tue, Feb 25, 2025 at 7:26 PM Kuniyuki Iwashima <kuniyu@...zon.com> wrote:
>
> We will convert RTM_NEWROUTE and RTM_DELROUTE to per-netns RTNL.
> Then, we need to have per-netns hash tables for struct fib_info.
>
> Let's allocate the hash tables per netns.
>
> fib_info_hash, fib_info_hash_bits, and fib_info_cnt are now moved
> to struct netns_ipv4 and accessed with net->ipv4.fib_XXX.
>
> Also, the netns checks are removed from fib_find_info_nh() and
> fib_find_info().
>
> Signed-off-by: Kuniyuki Iwashima <kuniyu@...zon.com>
Reviewed-by: Eric Dumazet <edumazet@...gle.com>
Powered by blists - more mailing lists