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)
commit8073e960a03bf7b5d5ebfc5ff18ac475e1688f46
tree94487b78758c1b7d9c6985b006fe20f4b7dea86c
parente1bf1687740ce1a3598a1c5e452b852ff2190682
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