netfilter: move table iteration out of netns exit paths
authorFlorian Westphal <fw@strlen.de>
Tue, 30 May 2017 09:31:06 +0000 (11:31 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 19 Jun 2017 17:09:19 +0000 (19:09 +0200)
commit2c41f33c1b7030448212cdacd40e80796e347eac
tree282753158f72e5438150d70cf72a382204f42418
parent202f59afd441474cc4c3752d2417cc05dd68ffe5
netfilter: move table iteration out of netns exit paths

We only need to iterate & remove in case of module removal;
for netns destruction all conntracks will be removed anyway.

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