net: Replace ip_ra_lock with per-net mutex
Since ra_chain is per-net, we may use per-net mutexes to protect them in ip_ra_control(). This improves scalability. Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
5796ef75ec
commit
d9ff304973
@@ -50,6 +50,7 @@ struct netns_ipv4 {
|
||||
struct ipv4_devconf *devconf_all;
|
||||
struct ipv4_devconf *devconf_dflt;
|
||||
struct ip_ra_chain __rcu *ra_chain;
|
||||
struct mutex ra_mutex;
|
||||
#ifdef CONFIG_IP_MULTIPLE_TABLES
|
||||
struct fib_rules_ops *rules_ops;
|
||||
bool fib_has_custom_rules;
|
||||
|
Reference in New Issue
Block a user