Re: [PATCH] netfilter: per netns nf_conntrack_cachep

Eric Dumazet
2010-02-01T15:02:28Z

Le lundi 01 février 2010 à 16:58 +0200, Alexey Dobriyan a écrit :
> On Mon, Feb 1, 2010 at 4:52 PM, Eric Dumazet <eric.dumazet@gmail.com> wrote:
> > + net->ct.nf_conntrack_cachep = kmem_cache_create("nf_conntrack",
> > + sizeof(struct nf_conn), 0,
> > + SLAB_DESTROY_BY_RCU, NULL);
>
> Duplicate slab name detected.
>

OK, need to build an unique name I guess... "nf_conntrack-%d", net->id

> Can we clarify this?
>
> Is checking for ct->ct_net enough to avoid the bug
> while maintaining per-netns/global status quo?

No, I am afraid its not possible without adding big overhead in
fastpath.