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 c38c9e55406b44d575cca5fb31d0456d09702641..23e567fb1d37cd6e0867a00876db6af630cc10f7 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;