netfilter: conntrack: remove GC_MAX_EVICTS break
commit5f7ff59d067e1888fec91fccefdd84f3987b605e
authorFlorian Westphal <fw@strlen.de>
Mon, 16 Jan 2017 17:24:56 +0000 (16 18:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Mar 2017 05:41:53 +0000 (12 06:41 +0100)
treeb8f6358e5c71f23388096a2c5fbe28e3968adabf
parentdc8470f3c831c93ffcda17612e8e58a73210b88b
netfilter: conntrack: remove GC_MAX_EVICTS break

commit 524b698db06b9b6da7192e749f637904e2f62d7b upstream.

Instead of breaking loop and instant resched, don't bother checking
this in first place (the loop calls cond_resched for every bucket anyway).

Suggested-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netfilter/nf_conntrack_core.c