mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-13 00:20:06 +00:00
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
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user