mbox series

[v2,net-next,0/6] net: Random cleanup for netns initialisation.

Message ID 20240731200721.70601-1-kuniyu@amazon.com (mailing list archive)
Headers show
Series net: Random cleanup for netns initialisation. | expand

Message

Kuniyuki Iwashima July 31, 2024, 8:07 p.m. UTC
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/


Kuniyuki Iwashima (6):
  l2tp: Don't assign net->gen->ptr[] for pppol2tp_net_ops.
  net: Don't register pernet_operations if only one of id or size is
    specified.
  net: Initialise net->passive once in preinit_net().
  net: Call preinit_net() without pernet_ops_rwsem.
  net: Slim down setup_net().
  net: Initialise net.core sysctl defaults in preinit_net().

 include/net/net_namespace.h |  4 +-
 net/core/net_namespace.c    | 84 ++++++++++++++++---------------------
 net/l2tp/l2tp_ppp.c         |  3 --
 3 files changed, 39 insertions(+), 52 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org Aug. 3, 2024, 10:16 p.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (main)
by David S. Miller <davem@davemloft.net>:

On Wed, 31 Jul 2024 13:07:15 -0700 you wrote:
> 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()
> 
> [...]

Here is the summary with links:
  - [v2,net-next,1/6] l2tp: Don't assign net->gen->ptr[] for pppol2tp_net_ops.
    https://git.kernel.org/netdev/net-next/c/1ad001347fb1
  - [v2,net-next,2/6] net: Don't register pernet_operations if only one of id or size is specified.
    https://git.kernel.org/netdev/net-next/c/768e4bb6a75e
  - [v2,net-next,3/6] net: Initialise net->passive once in preinit_net().
    https://git.kernel.org/netdev/net-next/c/2b5afc1d5d5a
  - [v2,net-next,4/6] net: Call preinit_net() without pernet_ops_rwsem.
    https://git.kernel.org/netdev/net-next/c/930299491825
  - [v2,net-next,5/6] net: Slim down setup_net().
    https://git.kernel.org/netdev/net-next/c/05be80125944
  - [v2,net-next,6/6] net: Initialise net.core sysctl defaults in preinit_net().
    https://git.kernel.org/netdev/net-next/c/8eaf71f77c92

You are awesome, thank you!