ipv6/addrconf: allocate a per netns hash table
authorEric Dumazet <edumazet@google.com>
Tue, 8 Feb 2022 04:50:28 +0000 (20:50 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 9 Feb 2022 04:41:32 +0000 (20:41 -0800)
commit21a216a8fc630161e69eaf02cbebdd1816ff1a13
tree95881822e7dbc13dd7bf9cd87502e98fd03a3f54
parentb2309a71c1f2fc841feb184195b2e46b2e139bf4
ipv6/addrconf: allocate a per netns hash table

Add a per netns hash table and a dedicated spinlock,
first step to get rid of the global inet6_addr_lst[] one.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/netns/ipv6.h
net/ipv6/addrconf.c