]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ipv4: Link IPv4 address to per-netns hash table.
authorKuniyuki Iwashima <kuniyu@amazon.com>
Tue, 8 Oct 2024 17:29:03 +0000 (10:29 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 10 Oct 2024 03:08:07 +0000 (20:08 -0700)
commit87173021f1583ee37f4801fcde354729da8db3dc
tree227ef64c31b8b0b7ad7114bea9513605fabd6481
parent22ee378eb6814b68664a8032f9eecd72e9b3dcda
ipv4: Link IPv4 address to per-netns hash table.

As a prep for per-netns RTNL conversion, we want to namespacify
the IPv4 address hash table and the GC work.

Let's allocate the per-netns IPv4 address hash table to
net->ipv4.inet_addr_lst and link IPv4 addresses into it.

The actual users will be converted later.

Note that the IPv6 address hash table is already namespacified.

Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20241008172906.1326-2-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/inetdevice.h
include/net/netns/ipv4.h
net/ipv4/devinet.c