netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] net: introduce per netns packet type chains
@ 2025-03-14 13:04 Paolo Abeni
  2025-03-14 13:05 ` [RFC PATCH 1/2] net: introduce per netns packet chains Paolo Abeni
  2025-03-14 13:05 ` [RFC PATCH 2/2] net: hotdata optimization for netns ptypes Paolo Abeni
  0 siblings, 2 replies; 9+ messages in thread
From: Paolo Abeni @ 2025-03-14 13:04 UTC (permalink / raw)
  To: netdev
  Cc: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Simon Horman, Jonathan Corbet

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(-)

-- 
2.48.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-03-17 10:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-14 13:04 [RFC PATCH 0/2] net: introduce per netns packet type chains Paolo Abeni
2025-03-14 13:05 ` [RFC PATCH 1/2] net: introduce per netns packet chains Paolo Abeni
2025-03-14 22:33   ` Sabrina Dubroca
2025-03-17  8:40     ` Paolo Abeni
2025-03-17  8:43       ` Eric Dumazet
2025-03-17  9:23         ` Paolo Abeni
2025-03-17 10:46           ` Eric Dumazet
2025-03-14 13:05 ` [RFC PATCH 2/2] net: hotdata optimization for netns ptypes Paolo Abeni
2025-03-17  9:18   ` Paolo Abeni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).