]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_conntrack: move initialization out of pernet operations
authorGao feng <gaofeng@cn.fujitsu.com>
Mon, 21 Jan 2013 22:10:24 +0000 (22:10 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 23 Jan 2013 11:53:35 +0000 (12:53 +0100)
commit0bfffa6d39cd33a013bffded0a1412b41f24d593
treec1f76b19cf4daf088421e0f75fd0fff6371c4a9c
parentf0fc922e16ea4671199a66548ee841bbe5a19ca0
netfilter: nf_conntrack: move initialization out of pernet operations

nf_conntrack initialization and cleanup codes happens in pernet
operations function. This task should be done in module_init/exit.
We can't use init_net to identify if it's the right time to initialize
or cleanup since we cannot make assumption on the order netns are
created/destroyed.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_conntrack_core.h
net/netfilter/nf_conntrack_core.c
net/netfilter/nf_conntrack_standalone.c