Skip to content

netfilter: conntrack: rework nf_ct_iterate, part 1.

Florian Westphal netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5netfilter: conntrack: rename nf_ct_iterate_cleanupinclude/net/netfilter/nf_conntrack.h net/ipv4/netfilter/nf_nat_masquerade_ipv4.c net/ipv6/netfilter/nf_nat_masquerade_ipv6.c +4 more+22 -220 replies
2/5netfilter: conntrack: don't call iter for non-confirmed conntracksnet/netfilter/nf_conntrack_core.c+29 -100 replies
3/5netfilter: conntrack: add nf_ct_iterate_destroyinclude/net/netfilter/nf_conntrack.h net/netfilter/nf_conntrack_core.c+78 -130 replies
4/5netfilter: conntrack: restart iteration on resizenet/netfilter/nf_conntrack_core.c+14 -60 replies
5/5netfilter: nat: destroy nat mappings on module exit path onlynet/netfilter/nf_nat_core.c+5 -320 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/5] netfilter: conntrack: rework nf_ct_iterate, part 1.

First batch of changes to rework how we iterate over the conntrack table.

Historically, we had one table.
When net namespaces were added, we got one table per namespace. Nowadays we again only have a single table (which considers netns during lookups).

This series prepares for removal of some open-coded table iteration places.

It also adds nf_ct_iterate_destroy(), to be used in module exit path when we need to inspect every conntrack entry regardless of namespace, then uses it from nat module exit path.