]> 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)
commitdc97ed7827a5452a0f909dc8ae3234459967e547
tree4537260b19131102d96cab06268e89ed7ae052c5
parent3c68cc57504636a9adcd74061b82f25578969a95
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