diff options
author | Denis V. Lunev <den@openvz.org> | 2008-01-10 06:20:28 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:01:23 -0500 |
commit | 5fd30ee7c48bf7f9cd16ab44c8a09fa4a57cc21d (patch) | |
tree | eb5fc97bcf41f7f1e9dd9d7c312e13c85c1610d0 /include/net/net_namespace.h | |
parent | 868d13ac811746e28e4c806f2b1bd8575796f9af (diff) |
[NETNS]: Namespacing in the generic fib rules code.
Move static rules_ops & rules_mod_lock to the struct net, register the
pernet subsys to init them and enjoy the fact that the core rules
infrastructure works in the namespace.
Real IPv4 fib rules virtualization requires fib tables support in the
namespace and will be done seriously later in the patchset.
Acked-by: Benjamin Thery <benjamin.thery@bull.net>
Acked-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/net_namespace.h')
-rw-r--r-- | include/net/net_namespace.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h index b0a5f904d252..b8c1d60ba9e4 100644 --- a/include/net/net_namespace.h +++ b/include/net/net_namespace.h | |||
@@ -40,6 +40,10 @@ struct net { | |||
40 | struct hlist_head *dev_name_head; | 40 | struct hlist_head *dev_name_head; |
41 | struct hlist_head *dev_index_head; | 41 | struct hlist_head *dev_index_head; |
42 | 42 | ||
43 | /* core fib_rules */ | ||
44 | struct list_head rules_ops; | ||
45 | spinlock_t rules_mod_lock; | ||
46 | |||
43 | struct sock *rtnl; /* rtnetlink socket */ | 47 | struct sock *rtnl; /* rtnetlink socket */ |
44 | 48 | ||
45 | /* core sysctls */ | 49 | /* core sysctls */ |