aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/netfilter/xt_rateest.h
diff options
context:
space:
mode:
authorCong Wang <xiyou.wangcong@gmail.com>2018-03-01 18:58:38 -0800
committerPablo Neira Ayuso <pablo@netfilter.org>2018-03-05 23:15:44 +0100
commit3427b2ab63faccafe774ea997fc2da7faf690c5a (patch)
tree4fe7627db7e79379d4ab69522886e492a065184c /include/net/netfilter/xt_rateest.h
parentnetfilter: x_tables: ensure last rule in base chain matches underflow/policy (diff)
downloadlinux-dev-3427b2ab63faccafe774ea997fc2da7faf690c5a.tar.xz
linux-dev-3427b2ab63faccafe774ea997fc2da7faf690c5a.zip
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>
Diffstat (limited to 'include/net/netfilter/xt_rateest.h')
-rw-r--r--include/net/netfilter/xt_rateest.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/netfilter/xt_rateest.h b/include/net/netfilter/xt_rateest.h
index b1db13772554..832ab69efda5 100644
--- a/include/net/netfilter/xt_rateest.h
+++ b/include/net/netfilter/xt_rateest.h
@@ -21,7 +21,7 @@ struct xt_rateest {
struct net_rate_estimator __rcu *rate_est;
};
-struct xt_rateest *xt_rateest_lookup(const char *name);
-void xt_rateest_put(struct xt_rateest *est);
+struct xt_rateest *xt_rateest_lookup(struct net *net, const char *name);
+void xt_rateest_put(struct net *net, struct xt_rateest *est);
#endif /* _XT_RATEEST_H */