]> git.baikalelectronics.ru Git - kernel.git/commit
net: introduce pre-change upper device notifier
authorJiri Pirko <jiri@mellanox.com>
Fri, 16 Oct 2015 12:01:22 +0000 (14:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Oct 2015 14:15:05 +0000 (07:15 -0700)
commita9803925489222b037afdafebf90cf91f3b8c93a
tree95f4e65ae8d2940047c1211fca064bccd41b25eb
parent4e5ad5b3a5b2b0076483edc68957dba81b353186
net: introduce pre-change upper device notifier

This newly introduced netdevice notifier is called before actual change
upper happens. That provides a possibility for notifier handlers to
know upper change will happen and react to it, including possibility to
forbid the change. That is valuable for drivers which can check if the
upper device linkage is supported and forbid that in case it is not.

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