aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCong Wang <[email protected]>2018-03-01 18:58:38 -0800
committerPablo Neira Ayuso <[email protected]>2018-03-05 23:15:44 +0100
commit3427b2ab63faccafe774ea997fc2da7faf690c5a (patch)
tree4fe7627db7e79379d4ab69522886e492a065184c /include
parent0d7df906a0e78079a02108b06d32c3ef2238ad25 (diff)
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 <[email protected]> Cc: Eric Dumazet <[email protected]> Cc: Pablo Neira Ayuso <[email protected]> Signed-off-by: Cong Wang <[email protected]> Reviewed-by: Eric Dumazet <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'include')
-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 */