]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit82a73efeb688828e4150183a75080f68460976bf
tree482d37284f058ae8439c47bc57416440caa04f61
parentff4af40b10bb93faecaab0ff52a0a39b4e6829f3
netfilter: xt_hashlimit: RCU conversion

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