Skip to content

RFC net: introduce per netns packet type chains

Paolo Abeni netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: introduce per netns packet chainsinclude/net/hotdata.h include/net/net_namespace.h net/core/dev.c +3 more+37 -185 replies
2/2net: hotdata optimization for netns ptypesDocumentation/networking/net_cachelines/net_device.rst include/linux/netdevice.h net/core/dev.c+53 -161 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/2] net: introduce per netns packet type chains

The stack uses shared lists between all the network namespace to store all the packet taps not bound to any device.

As a consequence, creating such taps in any namespace affects the performances in all the network namespaces.

Patch 1 addresses the issue introducing new per network namespace packet type chains, while patch 2 try to minimize the impact of such addition.

The hotdata implications are IMHO not trivial ence the RFC tag; I suspect patch 2 being the most controversial. As such a possible alternative is also presented.

Any feedback welcome!

Paolo Abeni (2):
net: introduce per netns packet chains
net: hotdata optimization for netns ptypes

 .../networking/net_cachelines/net_device.rst  |  2 +
 include/linux/netdevice.h                     |  9 +-
 include/net/hotdata.h                         |  1 -
 include/net/net_namespace.h                   |  3 +
 net/core/dev.c                                | 82 +++++++++++++++----
 net/core/hotdata.c                            |  1 -
 net/core/net-procfs.c                         | 16 ++--
 net/core/net_namespace.c                      |  2 +
 8 files changed, 86 insertions(+), 30 deletions(-)
Signature · 1 line
2.48.1