netfilter: conntrack: speed up netns dismantle
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | netfilter: conntrack: split nf_conntrack_cleanup_net_listnet/ | +13 | 0 replies | |
| 2/2 | netfilter: conntrack: speed up netns cleanupnet/ | +17 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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