netfilter: conntrack: handle ->destroy hook via nat_ops instead
authorFlorian Westphal <fw@strlen.de>
Thu, 20 Jan 2022 12:07:01 +0000 (13:07 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 4 Feb 2022 05:30:28 +0000 (06:30 +0100)
commit1bc91a5ddf3eaea0e0ea957cccf3abdcfcace00e
tree0c99175c50370672be38b4794b329622dd007753
parent5f31edc0676b55cd6baf5ba119d1881f3fbadee1
netfilter: conntrack: handle ->destroy hook via nat_ops instead

The nat module already exposes a few functions to the conntrack core.
Move the nat extension destroy hook to it.

After this, no conntrack extension needs a destroy hook.
'struct nf_ct_ext_type' and the register/unregister api can be removed
in a followup patch.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/netfilter.h
include/net/netfilter/nf_conntrack_extend.h
net/netfilter/nf_conntrack_core.c
net/netfilter/nf_conntrack_extend.c
net/netfilter/nf_nat_core.c