summaryrefslogtreecommitdiffstats
path: root/include/net
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
parent0d7df906a0e78079a02108b06d32c3ef2238ad25 (diff)
downloadop-kernel-dev-3427b2ab63faccafe774ea997fc2da7faf690c5a.zip
op-kernel-dev-3427b2ab63faccafe774ea997fc2da7faf690c5a.tar.gz
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')
-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 b1db137..832ab69 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 */
OpenPOWER on IntegriCloud