netns: allow per device ipv6 snmp statistics in non-initial namespace
authorDenis V. Lunev <den@openvz.org>
Tue, 7 Oct 2008 21:47:55 +0000 (14:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Oct 2008 21:47:55 +0000 (14:47 -0700)
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/proc.c

index c38c9e5..23e567f 100644 (file)
@@ -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;