netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH nf-next 0/3] netfilter: remove per-netns conntrack tables, part 3
@ 2016-05-09 14:24 Florian Westphal
  2016-05-09 14:24 ` [PATCH nf-next 1/3] netfilter: conntrack: make netns address part of nat bysrc hash Florian Westphal
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Florian Westphal @ 2016-05-09 14:24 UTC (permalink / raw)
  To: netfilter-devel

This series removes the per-namespace duplication of the NAT bysource table.

We use one table for all namespaces, using net_hash_mix(net) as additional
hash seed so entries are spread evenly even if addresses overlap.

We then also remove the per-namespace kmem cache and allocate all
conntrack entries from the same cache.

This is the last table: earlier patches already converted conntrack and
expectation tables.

I have another patch queued to convert nat bysource table to an rhashtable.
However; it seems better to wait until the next merge window so that bug
reports can be more easily pointed to the de-duplication work or a rhashtable
conversion, I will therefore hold this back for now.

Other items that might be de-namespaced but are not being worked on at
the moment:

struct ct_pcpu __percpu *pcpu_lists

Only problem might be reliable event redelivery; such conntracks sit on
the dying list, if this list is global we also need to make sure that we
don't spend too much cycles iterating, especially if lots of namespaces
use reliable event delivery and are backlogged (userspace not reading
events fast enough).

struct ip_conntrack_stat __percpu *stat;

Easy to convert. However this would mean that information gets leaked
as all namespaces would see same stats.


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

end of thread, other threads:[~2016-05-09 14:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-09 14:24 [PATCH nf-next 0/3] netfilter: remove per-netns conntrack tables, part 3 Florian Westphal
2016-05-09 14:24 ` [PATCH nf-next 1/3] netfilter: conntrack: make netns address part of nat bysrc hash Florian Westphal
2016-05-09 14:24 ` [PATCH nf-next 2/3] netfilter: conntrack: use a single nat bysource table for all namespaces Florian Westphal
2016-05-09 14:24 ` [PATCH nf-next 3/3] netfilter: conntrack: use single slab cache Florian Westphal
2016-05-09 14:45 ` [PATCH nf-next 0/3] netfilter: remove per-netns conntrack tables, part 3 Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).