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)
commit573c7ba006edbecff0714db651dd3602b9d0a6a0
tree95f4e65ae8d2940047c1211fca064bccd41b25eb
parent125ecf4b5994f17cb581af399933d0bd0b153080
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