Skip to content

net: Random cleanup for netns initialisation.

Kuniyuki Iwashima netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 1 replyApplied 6/6
  2. v16 patches 6 repliesSuperseded

Changes in v2 from the cover letter

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

Patches in v2 All 6 applied

#Subject and filesSizeRepliesApplied
1/6l2tp: Don't assign net->gen->ptr[] for pppol2tp_net_ops.net/l2tp/l2tp_ppp.c+0 -31 replyApplied
2/6net: Don't register pernet_operations if only one of id or size is specified.include/net/net_namespace.h net/core/net_namespace.c+10 -60 repliesApplied
3/6net: Initialise net->passive once in preinit_net().net/core/net_namespace.c+1 -20 repliesApplied
4/6net: Call preinit_net() without pernet_ops_rwsem.net/core/net_namespace.c+2 -10 repliesApplied
5/6net: Slim down setup_net().net/core/net_namespace.c+16 -150 repliesApplied
6/6net: Initialise net.core sysctl defaults in preinit_net().net/core/net_namespace.c+11 -260 repliesApplied

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchSimon HormanJames Chapman
1/6R-b R-b
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 net-next 0/6] 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/[email protected]/

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(-)
Signature · 1 line
2.30.2