]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit92035ce63e747e44dc5d82143ed655a555f4073f
tree2494c00a2fc1d9153734672cfbe7e96e215aa14a
parentde3d9631fd30254893ba74dff67b3adde685e1a7
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