From: Florian Westphal <fw@strlen.de>
To: <netfilter-devel@vger.kernel.org>
Cc: Florian Westphal <fw@strlen.de>
Subject: [PATCH nf-next 0/2] netfilter: conntrack: speed up netns dismantle
Date: Wed, 17 Nov 2021 12:23:43 +0100 [thread overview]
Message-ID: <20211117112345.6741-1-fw@strlen.de> (raw)
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
next reply other threads:[~2021-11-17 11:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-17 11:23 Florian Westphal [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211117112345.6741-1-fw@strlen.de \
--to=fw@strlen.de \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.