flowcache: restore a single flow_cache kmem_cache
It is not legal to create multiple kmem_cache having the same name.
flowcache can use a single kmem_cache, no need for a per netns
one.
Fixes: ca925cf153
("flowcache: Make flow cache name space aware")
Reported-by: Jakub Kicinski <moorray3@wp.pl>
Tested-by: Jakub Kicinski <moorray3@wp.pl>
Tested-by: Fan Du <fan.du@windriver.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
5812521be0
commit
d32d9bb85c
@@ -64,7 +64,6 @@ struct netns_xfrm {
|
||||
|
||||
/* flow cache part */
|
||||
struct flow_cache flow_cache_global;
|
||||
struct kmem_cache *flow_cachep;
|
||||
atomic_t flow_cache_genid;
|
||||
struct list_head flow_cache_gc_list;
|
||||
spinlock_t flow_cache_gc_lock;
|
||||
|
Reference in New Issue
Block a user