netfilter: limit: use per-rule spinlock to improve the scalability
authorLiping Zhang <zlpnobody@gmail.com>
Sat, 11 Mar 2017 06:08:09 +0000 (14:08 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 13 Mar 2017 18:30:31 +0000 (19:30 +0100)
commit2cb4bbd75bdf9d423b9f6c629f81eb66ee312fac
tree1a9561302ba75b1483f6ea5954d62478f82d35dd
parentfc09e4a75a12552b9374a5b0c5f5815aecf8c37a
netfilter: limit: use per-rule spinlock to improve the scalability

The limit token is independent between each rules, so there's no
need to use a global spinlock.

Signed-off-by: Liping Zhang <zlpnobody@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_limit.c
net/netfilter/xt_limit.c