]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: introduce change lower state notifier
authorJiri Pirko <jiri@mellanox.com>
Thu, 3 Dec 2015 11:12:15 +0000 (12:12 +0100)
committerBrian Maly <brian.maly@oracle.com>
Tue, 20 Nov 2018 22:11:53 +0000 (17:11 -0500)
commite651415dfc1561cda596bd9fb5f16b1ca7b04c7f
tree13ef4eb99a5da73103d446da3aeb52daed6a3090
parent653a04d7cb4f02af7d3abfe74084e7c3a7b51aeb
net: introduce change lower state notifier

When lower device like bonding slave, team/bridge port, etc changes its
state, it is useful for others to notice this change. Currently this is
implemented specificly for bonding as NETDEV_BONDING_INFO notifier. This
patch aims to replace this specific usage and make this more generic to
be used for all upper-lower devices.

Introduce NETDEV_CHANGELOWERSTATE netdev notifier type and
netdev_lower_state_changed() helper.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 04d482660a07039fc4e9a42bb3517db236d98f96)
Orabug: 28122104
Signed-off-by: Vijay Balakrishna <vijay.balakrishna@oracle.com>
Reviewed-by: Si-Wei Liu <si-wei.liu@oracle.com>
Reviewed-by: Shannon Nelson <shannon.nelson@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Conflicts:
include/linux/netdevice.h
(a #define not present in UEK4)

Signed-off-by: Brian Maly <brian.maly@oracle.com>
include/linux/netdevice.h
net/core/dev.c