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)
commitd755407d4444c3e0fbd7d7c3aa666d595e9ab217
tree1e6c86d833c5cee59e938e70ef540a3fff4057cd
parente6dee9f3893c823dff9c7f33fe0a598ee25c78f7
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