]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nat: use keyed locks
authorFlorian Westphal <fw@strlen.de>
Wed, 6 Sep 2017 12:39:52 +0000 (14:39 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 8 Sep 2017 16:55:52 +0000 (18:55 +0200)
commit579d6f6a8f3a3e8a502e5ce980734a416208d2a0
tree94487b78758c1b7d9c6985b006fe20f4b7dea86c
parent4b435092f68cf7cfe7e5fe1cf543c30e242d9e50
netfilter: nat: use keyed locks

no need to serialize on a single lock, we can partition the table and
add/delete in parallel to different slots.
This restores one of the advantages that got lost with the rhlist
revert.

Cc: Ivan Babrou <ibobrik@gmail.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_nat_core.c