netfilter: core: batch nf_unregister_net_hooks synchronize_net calls
authorFlorian Westphal <fw@strlen.de>
Wed, 23 Aug 2017 15:26:27 +0000 (17:26 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 28 Aug 2017 15:44:02 +0000 (17:44 +0200)
commitd3ad2c17b4047747bcec074814c08b00795afc85
tree0d41a0ba3f78fc1ca7df03be1d0a691f5bb78a43
parent2420b79f8c18a75ee2417cace381f4604b9b4365
netfilter: core: batch nf_unregister_net_hooks synchronize_net calls

re-add batching in nf_unregister_net_hooks().

Similar as before, just store an array with to-be-free'd rule arrays
on stack, then call synchronize_net once per batch.

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