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

login
register
mail settings
Submitter Denis V. Lunev
Date Oct. 2, 2008, 10:14 a.m.
Message ID <1222942452-9820-6-git-send-email-den@openvz.org>
Download mbox | patch
Permalink /patch/2373/
State Not Applicable
Delegated to: David Miller
Headers show

Comments

Denis V. Lunev - Oct. 2, 2008, 10:14 a.m.
Signed-off-by: Denis V. Lunev <den@openvz.org>
---
 net/ipv6/proc.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

Patch

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;