]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: conntrack: remove GC_MAX_EVICTS break
authorFlorian Westphal <fw@strlen.de>
Mon, 16 Jan 2017 17:24:56 +0000 (18:24 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 19 Jan 2017 13:27:41 +0000 (14:27 +0100)
commitc0b7f0c40b199cd1595e410ead54262e9022c418
treebeb293e4da01e5e604140ec9a7240e5274012457
parent159c889e8d06249385a1a0259e8286b804d5bd1d
netfilter: conntrack: remove GC_MAX_EVICTS break

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>
net/netfilter/nf_conntrack_core.c