All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH nf-next 0/2] netfilter: conntrack: speed up netns dismantle
@ 2021-11-17 11:23 Florian Westphal
  2021-11-17 11:23 ` [PATCH nf-next 1/2] netfilter: conntrack: split nf_conntrack_cleanup_net_list Florian Westphal
  2021-11-17 11:23 ` [PATCH nf-next 2/2] netfilter: conntrack: speed up netns cleanup Florian Westphal
  0 siblings, 2 replies; 3+ messages in thread
From: Florian Westphal @ 2021-11-17 11:23 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Florian Westphal

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

-- 
2.32.0


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

end of thread, other threads:[~2021-11-17 11:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-17 11:23 [PATCH nf-next 0/2] netfilter: conntrack: speed up netns dismantle Florian Westphal
2021-11-17 11:23 ` [PATCH nf-next 1/2] netfilter: conntrack: split nf_conntrack_cleanup_net_list Florian Westphal
2021-11-17 11:23 ` [PATCH nf-next 2/2] netfilter: conntrack: speed up netns cleanup Florian Westphal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.