]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'per-netns-notifier'
authorDavid S. Miller <davem@davemloft.net>
Wed, 2 Oct 2019 15:48:44 +0000 (11:48 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Oct 2019 15:48:44 +0000 (11:48 -0400)
commit1c807fd4f883dc1851a4e41b5ac92d8e2cc1f066
tree801eb4b5aaef8cf0a3d39607794858e36fa954ce
parent75de74b0fea1b5cc901b737306935c86740bbcb5
parent2e9d016a4c3bc7d2f741e87749b59022caa4beaa
Merge branch 'per-netns-notifier'

Jiri Pirko says:

====================
net: introduce per-netns netdevice notifiers and use them in mlxsw

Some drivers, like mlxsw, are not interested in notifications coming in
for netdevices from other network namespaces. So introduce per-netns
notifiers and allow to reduce overhead by listening only for
notifications from the same netns.

This is also a preparation for upcoming patchset "devlink: allow devlink
instances to change network namespace". This resolves deadlock during
reload mlxsw into initial netns made possible by
51de843fb670 ("net: Close race between {un, }register_netdevice_notifier() and setup_net()/cleanup_net()").
====================

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