diff options
author | Shawn Bohrer <sbohrer@cloudflare.com> | 2018-12-28 01:24:42 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-12-29 02:45:18 +0100 |
commit | c78e7818f16f687389174c4569243abbec8dc68f (patch) | |
tree | ab37050d31bdb5e376ae502865ddc38bbd7939c9 /.clang-format | |
parent | eb8950861c1bfd3eecc8f6faad213e3bca0dc395 (diff) |
netfilter: nf_conncount: replace CONNCOUNT_LOCK_SLOTS with CONNCOUNT_SLOTS
Most of the time these were the same value anyway, but when
CONFIG_LOCKDEP was enabled we would use a smaller number of locks to
reduce overhead. Unfortunately having two values is confusing and not
worth the complexity.
This fixes a bug where tree_gc_worker() would only GC up to
CONNCOUNT_LOCK_SLOTS trees which meant when CONFIG_LOCKDEP was enabled
not all trees would be GCed by tree_gc_worker().
Fixes: 5c789e131cbb9 ("netfilter: nf_conncount: Add list lock and gc worker, and RCU for init tree search")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Shawn Bohrer <sbohrer@cloudflare.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions