]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
Merge branch 'net-allow-per-net-notifier-to-follow-netdev-into-namespace'
authorDavid S. Miller <davem@davemloft.net>
Mon, 27 Jan 2020 10:03:44 +0000 (11:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jan 2020 10:03:44 +0000 (11:03 +0100)
commit09917a126d5babd9d0d9bee8ee2c5fc8517851e6
tree1b30b5e4c33fde74699a46fb49e7a289bbc2be67
parentcd94ef06392ffd49e0a0e1c28bc5cd44f37f1f6b
parentd48834f9d4b4e7611cc84ac2c5018f1b420d59c2
Merge branch 'net-allow-per-net-notifier-to-follow-netdev-into-namespace'

Jiri Pirko says:

====================
net: allow per-net notifier to follow netdev into namespace

Currently we have per-net notifier, which allows to get only
notifications relevant to particular network namespace. That is enough
for drivers that have netdevs local in a particular namespace (cannot
move elsewhere).

However if netdev can change namespace, per-net notifier cannot be used.
Introduce dev_net variant that is basically per-net notifier with an
extension that re-registers the per-net notifier upon netdev namespace
change. Basically the per-net notifier follows the netdev into
namespace.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>