net: dsa: refine netdev event notifier
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Sun, 13 Mar 2016 20:21:34 +0000 (16:21 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Mar 2016 20:05:32 +0000 (16:05 -0400)
commit6debb68a2d1acd1f5eca1d9d1c79a54dc998b6d6
treed5cd4d18aca824a81c59800c3b29edbca623a488
parent16bfa7024eba5e36aff38ba62086b9027373007d
net: dsa: refine netdev event notifier

Rework the netdev event handler, similar to what the Mellanox Spectrum
driver does, to easily welcome more events later (for example
NETDEV_PRECHANGEUPPER) and use netdev helpers (such as
netif_is_bridge_master).

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/slave.c