]> 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)
commit4f433983354263dd065242cdec2b618e1434d0a5
tree1e6c86d833c5cee59e938e70ef540a3fff4057cd
parentb21c2a3aecb049a30579a8b0c891128496c7496a
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