]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net: introduce change lower state notifier
authorJiri Pirko <jiri@mellanox.com>
Thu, 3 Dec 2015 11:12:15 +0000 (12:12 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Dec 2015 16:49:26 +0000 (11:49 -0500)
commit04d482660a07039fc4e9a42bb3517db236d98f96
tree416983aba87723dd09de034c5a13c74a092dd1a8
parent41f0b0496466d6e0e8245f94a79889234cde5e3c
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>
include/linux/netdevice.h
net/core/dev.c