net: fix "queues" uevent between network namespaces
authorWeilong Chen <chenweilong@huawei.com>
Thu, 16 Jan 2014 09:24:31 +0000 (17:24 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jan 2014 04:02:02 +0000 (20:02 -0800)
commit82ef3d5d5f3ffd757c960693c4fe7a0051211849
tree2494c00a2fc1d9153734672cfbe7e96e215aa14a
parent671314a5abb7abb8346cd3f16f75c1e55ed7667b
net: fix "queues" uevent between network namespaces

When I create a new namespace with 'ip netns add net0', or add/remove
new links in a namespace with 'ip link add/delete type veth', rx/tx
queues events can be got in all namespaces. That is because rx/tx queue
ktypes do not have namespace support, and their kobj parents are setted to
NULL. This patch is to fix it.

Reported-by: Libo Chen <chenlibo@huawei.com>
Signed-off-by: Libo Chen <chenlibo@huawei.com>
Signed-off-by: Weilong Chen <chenweilong@huawei.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/kobject_uevent.c
net/core/net-sysfs.c