aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/proc.c
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-10-07 17:47:55 -0400
committerDavid S. Miller <davem@davemloft.net>2008-10-07 17:47:55 -0400
commitab38dc7a70e59a4888ab4acb51daf3c6012ce4b8 (patch)
tree9c3c08b45a68a46f19c770c493d33fecef039d8e /net/ipv6/proc.c
parent2b4209e4b7ba9c7d70910a665ae4b60d49b75fcd (diff)
netns: allow per device ipv6 snmp statistics in non-initial namespace
Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/proc.c')
-rw-r--r--net/ipv6/proc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/ipv6/proc.c b/net/ipv6/proc.c
index c38c9e55406b..23e567fb1d37 100644
--- a/net/ipv6/proc.c
+++ b/net/ipv6/proc.c
@@ -231,9 +231,6 @@ int snmp6_register_dev(struct inet6_dev *idev)
231 return -EINVAL; 231 return -EINVAL;
232 232
233 net = dev_net(idev->dev); 233 net = dev_net(idev->dev);
234 if (!net_eq(net, &init_net))
235 return 0;
236
237 if (!net->mib.proc_net_devsnmp6) 234 if (!net->mib.proc_net_devsnmp6)
238 return -ENOENT; 235 return -ENOENT;
239 236