netfilter: xt_hashlimit: RCU conversion
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 1 Apr 2010 12:35:56 +0000 (14:35 +0200)
committerPatrick McHardy <kaber@trash.net>
Thu, 1 Apr 2010 12:35:56 +0000 (14:35 +0200)
xt_hashlimit uses a central lock per hash table and suffers from
contention on some workloads. (Multiqueue NIC or if RPS is enabled)

After RCU conversion, central lock is only used when a writer wants to
add or delete an entry.

For 'readers', updating an existing entry, they use an individual lock
per entry.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/netfilter/xt_hashlimit.c

Simple merge