mbox series

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

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

Message

Kuniyuki Iwashima July 29, 2024, 9: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 reqruire pernet_ops_rwsem.


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

Jakub Kicinski July 31, 2024, 1:52 a.m. UTC | #1
On Mon, 29 Jul 2024 14:07:55 -0700 Kuniyuki Iwashima wrote:
> do not reqruire pernet_ops_rwsem.

require
Kuniyuki Iwashima July 31, 2024, 6:46 p.m. UTC | #2
From: Jakub Kicinski <kuba@kernel.org>
Date: Tue, 30 Jul 2024 18:52:34 -0700
> On Mon, 29 Jul 2024 14:07:55 -0700 Kuniyuki Iwashima wrote:
> > do not reqruire pernet_ops_rwsem.
> 
> require

Aha, I should've used Grammarly even for short cover letter :)

will fix it.

Thanks!