netfilter: make xt_rateest hash table per net
authorCong Wang <xiyou.wangcong@gmail.com>
Fri, 2 Mar 2018 02:58:38 +0000 (18:58 -0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 5 Mar 2018 22:15:44 +0000 (23:15 +0100)
commit3427b2ab63faccafe774ea997fc2da7faf690c5a
tree4fe7627db7e79379d4ab69522886e492a065184c
parent0d7df906a0e78079a02108b06d32c3ef2238ad25
netfilter: make xt_rateest hash table per net

As suggested by Eric, we need to make the xt_rateest
hash table and its lock per netns to reduce lock
contentions.

Cc: Florian Westphal <fw@strlen.de>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/xt_rateest.h
net/netfilter/xt_RATEEST.c
net/netfilter/xt_rateest.c