Commit ab38dc7a authored by Denis V. Lunev's avatar Denis V. Lunev Committed by David S. Miller

netns: allow per device ipv6 snmp statistics in non-initial namespace

Signed-off-by: default avatarDenis V. Lunev <den@openvz.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2b4209e4
...@@ -231,9 +231,6 @@ int snmp6_register_dev(struct inet6_dev *idev) ...@@ -231,9 +231,6 @@ int snmp6_register_dev(struct inet6_dev *idev)
return -EINVAL; return -EINVAL;
net = dev_net(idev->dev); net = dev_net(idev->dev);
if (!net_eq(net, &init_net))
return 0;
if (!net->mib.proc_net_devsnmp6) if (!net->mib.proc_net_devsnmp6)
return -ENOENT; return -ENOENT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment