]> git.baikalelectronics.ru Git - kernel.git/commit
net-sysfs: add queue_change_owner()
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 27 Feb 2020 03:37:18 +0000 (04:37 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Feb 2020 04:07:26 +0000 (20:07 -0800)
commite51ca9a9482ca6f96c15a3d2b18c232c20775c1e
tree1e6c86d833c5cee59e938e70ef540a3fff4057cd
parenta1ed253b9795c6f83fb9b0c71b3733d3697b268d
net-sysfs: add queue_change_owner()

Add a function to change the owner of the queue entries for a network device
when it is moved between network namespaces.

Currently, when moving network devices between network namespaces the
ownership of the corresponding queue sysfs entries are not changed. This leads
to problems when tools try to operate on the corresponding sysfs files. Fix
this.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net-sysfs.c