]> git.baikalelectronics.ru Git - kernel.git/commit
net: introduce per-netns netdevice notifiers
authorJiri Pirko <jiri@mellanox.com>
Mon, 30 Sep 2019 08:15:10 +0000 (10:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Oct 2019 15:48:44 +0000 (11:48 -0400)
commit11e424a5940f758f0db0edd38bd1694211f30983
tree4537260b19131102d96cab06268e89ed7ae052c5
parentf1c4c89c152395907bb19ed6aa0f070db88afeba
net: introduce per-netns netdevice notifiers

Often the code for example in drivers is interested in getting notifier
call only from certain network namespace. In addition to the existing
global netdevice notifier chain introduce per-netns chains and allow
users to register to that. Eventually this would eliminate unnecessary
overhead in case there are many netdevices in many network namespaces.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
include/net/net_namespace.h
net/core/dev.c