Skip to content

netfilter: conntrack: speed up netns dismantle

Florian Westphal netfilter-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2netfilter: conntrack: split nf_conntrack_cleanup_net_listnet/netfilter/nf_conntrack_core.c+13 -60 replies
2/2netfilter: conntrack: speed up netns cleanupnet/netfilter/nf_conntrack_core.c+17 -40 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH nf-next 0/2] netfilter: conntrack: speed up netns dismantle

On netns exit the conntrack table is iterated once for every netns on the exit list. We can use same 'trick' as tcp metrics and use the netns refcount to detect which net namespaces are exiting instead.

This allows to iterate the table only once regardless of how many net namespaces require cleanup.

Florian Westphal (2):
netfilter: conntrack: split nf_conntrack_cleanup_net_list
netfilter: conntrack: speed up netns cleanup

 net/netfilter/nf_conntrack_core.c | 40 +++++++++++++++++++++++--------
 1 file changed, 30 insertions(+), 10 deletions(-)
Signature · 1 line
2.32.0