netfilter: core: make nf_unregister_net_hooks simple wrapper again
authorFlorian Westphal <fw@strlen.de>
Thu, 30 Nov 2017 23:21:02 +0000 (00:21 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 8 Jan 2018 17:01:05 +0000 (18:01 +0100)
commit4e645b47c4f000a503b9c90163ad905786b9bc1d
tree551fcbc839f3dc980b10705cd6a288a944c0a099
parentca9b01473a474a45b7a8a419a897a2aaf3304249
netfilter: core: make nf_unregister_net_hooks simple wrapper again

This reverts commit d3ad2c17b4047
("netfilter: core: batch nf_unregister_net_hooks synchronize_net calls").

Nothing wrong with it.  However, followup patch will delay freeing of hooks
with call_rcu, so all synchronize_net() calls become obsolete and there
is no need anymore for this batching.

This revert causes a temporary performance degradation when destroying
network namespace, but its resolved with the upcoming call_rcu conversion.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/core.c