netfilter: remove hook owner refcounting
authorFlorian Westphal <fw@strlen.de>
Tue, 13 Oct 2015 12:33:26 +0000 (14:33 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 16 Oct 2015 16:21:39 +0000 (18:21 +0200)
commit2ffbceb2b08f8ca0496c54a9ebcd11d25275954e
treef4da28636d8583f4817b4e374c8e78eba2b822b5
parent8cbc870829ecd8f1062f2a756683c80e2d1eae7f
netfilter: remove hook owner refcounting

since commit 8405a8fff3f8 ("netfilter: nf_qeueue: Drop queue entries on
nf_unregister_hook") all pending queued entries are discarded.

So we can simply remove all of the owner handling -- when module is
removed it also needs to unregister all its hooks.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
18 files changed:
include/linux/netfilter.h
net/bridge/br_netfilter_hooks.c
net/bridge/netfilter/ebtable_filter.c
net/bridge/netfilter/ebtable_nat.c
net/ipv4/netfilter/ipt_SYNPROXY.c
net/ipv4/netfilter/iptable_nat.c
net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c
net/ipv4/netfilter/nf_defrag_ipv4.c
net/ipv6/netfilter/ip6t_SYNPROXY.c
net/ipv6/netfilter/ip6table_nat.c
net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c
net/ipv6/netfilter/nf_defrag_ipv6_hooks.c
net/netfilter/ipvs/ip_vs_core.c
net/netfilter/nf_queue.c
net/netfilter/nf_tables_api.c
net/netfilter/x_tables.c
security/selinux/hooks.c
security/smack/smack_netfilter.c