diff options
author | Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp> | 2007-03-23 11:17:27 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-25 22:27:45 -0700 |
commit | de6e05c49f8b4ed63224c5d38891f531ecc4eabb (patch) | |
tree | 2ed69a03c657a5618bc98a5f74acb905bf764ecf /net/netfilter/core.c | |
parent | 5f79e0f916a3bdeccc910fdf466bca582a9b2cca (diff) | |
download | linux-3.10-de6e05c49f8b4ed63224c5d38891f531ecc4eabb.tar.gz linux-3.10-de6e05c49f8b4ed63224c5d38891f531ecc4eabb.tar.bz2 linux-3.10-de6e05c49f8b4ed63224c5d38891f531ecc4eabb.zip |
[NETFILTER]: nf_conntrack: kill destroy() in struct nf_conntrack for diet
The destructor per conntrack is unnecessary, then this replaces it with
system wide destructor.
Signed-off-by: Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter/core.c')
-rw-r--r-- | net/netfilter/core.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/net/netfilter/core.c b/net/netfilter/core.c index fe5f22df620..a84478ee2de 100644 --- a/net/netfilter/core.c +++ b/net/netfilter/core.c @@ -260,7 +260,22 @@ void nf_ct_attach(struct sk_buff *new, struct sk_buff *skb) } } EXPORT_SYMBOL(nf_ct_attach); -#endif + +void (*nf_ct_destroy)(struct nf_conntrack *); +EXPORT_SYMBOL(nf_ct_destroy); + +void nf_conntrack_destroy(struct nf_conntrack *nfct) +{ + void (*destroy)(struct nf_conntrack *); + + rcu_read_lock(); + destroy = rcu_dereference(nf_ct_destroy); + BUG_ON(destroy == NULL); + destroy(nfct); + rcu_read_unlock(); +} +EXPORT_SYMBOL(nf_conntrack_destroy); +#endif /* CONFIG_NF_CONNTRACK */ #ifdef CONFIG_PROC_FS struct proc_dir_entry *proc_net_netfilter; |