Merge branch 'netns-init-cleanups' into main
authorDavid S. Miller <davem@davemloft.net>
Sat, 3 Aug 2024 21:38:45 +0000 (22:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Aug 2024 21:38:45 +0000 (22:38 +0100)
Kuniyuki Iwashima says:

====================
net: Random cleanup for netns initialisation.

patch 1 & 2 suppress unwanted memory allocation for net->gen->ptr[].

patch 3 ~ 6 move part of netns initialisation to prenet_init() that
do not require pernet_ops_rwsem.

v2:
  patch 1 : Removed Fixes: tag
  patch 2 : Use XOR for WARN_ON()

v1: https://lore.kernel.org/netdev/20240729210801.16196-1-kuniyu@amazon.com/
====================

Signed-off-by: David S. Miller <davem@davemloft.net>

Trivial merge