diff options
author | Denis V. Lunev <den@openvz.org> | 2008-01-10 11:20:28 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 23:01:23 (GMT) |
commit | 5fd30ee7c48bf7f9cd16ab44c8a09fa4a57cc21d (patch) | |
tree | eb5fc97bcf41f7f1e9dd9d7c312e13c85c1610d0 /include/net/net_namespace.h | |
parent | 868d13ac811746e28e4c806f2b1bd8575796f9af (diff) | |
download | linux-fsl-qoriq-5fd30ee7c48bf7f9cd16ab44c8a09fa4a57cc21d.tar.xz |
[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 b0a5f90..b8c1d60 100644 --- a/include/net/net_namespace.h +++ b/include/net/net_namespace.h @@ -40,6 +40,10 @@ struct net { struct hlist_head *dev_name_head; struct hlist_head *dev_index_head; + /* core fib_rules */ + struct list_head rules_ops; + spinlock_t rules_mod_lock; + struct sock *rtnl; /* rtnetlink socket */ /* core sysctls */ |