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>
This commit is contained in:
parent
2b4209e4b7
commit
ab38dc7a70
1 changed files with 0 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue