[PATCH net-next 6/9] netns: allow per device ipv6 snmp statistics in non-initial namespace

Denis V. Lunev den at openvz.org
Thu Oct 2 03:14:09 PDT 2008


Signed-off-by: Denis V. Lunev <den at openvz.org>
---
 net/ipv6/proc.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/net/ipv6/proc.c b/net/ipv6/proc.c
index c38c9e5..23e567f 100644
--- a/net/ipv6/proc.c
+++ b/net/ipv6/proc.c
@@ -231,9 +231,6 @@ int snmp6_register_dev(struct inet6_dev *idev)
 		return -EINVAL;
 
 	net = dev_net(idev->dev);
-	if (!net_eq(net, &init_net))
-		return 0;
-
 	if (!net->mib.proc_net_devsnmp6)
 		return -ENOENT;
 
-- 
1.5.3.rc5



More information about the Containers mailing list