Skip to content

netns: Optimise netns ID lookups

Guillaume Nault netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3netns: Remove __peernet2id_alloc()net/core/net_namespace.c+23 -320 replies
2/3netns: protect netns ID lookups with RCUnet/core/net_namespace.c+7 -150 replies
3/3netns: don't disable BHs when locking "nsid_lock"net/core/net_namespace.c+11 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/3] netns: Optimise netns ID lookups

Netns ID lookups can be easily protected by RCU, rather than by holding a spinlock.

Patch 1 prepares the code, patch 2 does the RCU conversion, and finally patch 3 stops disabling BHs on updates (patch 2 makes that unnecessary).

Guillaume Nault (3):
netns: Remove __peernet2id_alloc()
netns: protect netns ID lookups with RCU
netns: don't disable BHs when locking "nsid_lock"

 net/core/net_namespace.c | 93 ++++++++++++++++------------------------
 1 file changed, 38 insertions(+), 55 deletions(-)
Signature · 1 line
2.21.1