linux-stable/net/dsa
Vivien Didelot f123f2fbed net: dsa: pass bridge device when a port leaves
Upon reception of the NETDEV_CHANGEUPPER, a leaving port is already
unbridged, so reflect this by assigning the port's bridge_dev pointer to
NULL before calling the port_bridge_leave DSA driver operation.

Now that the bridge_dev pointer is exposed to the drivers, reflecting
the current state of the DSA switch fabric is necessary for the drivers
to adjust their port based VLANs correctly.

Pass the bridge device pointer to the port_bridge_leave operation so
that drivers have all information to re-program their chips properly,
and do not need to cache it anymore.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-01-29 18:42:46 -05:00
..
dsa.c net: dsa: use ds->num_ports when possible 2017-01-29 18:42:46 -05:00
dsa2.c net: dsa: add ds and index to dsa_port 2017-01-29 18:42:46 -05:00
dsa_priv.h net: dsa: move bridge device in dsa_port 2017-01-29 18:42:46 -05:00
Kconfig net: dsa: Remove hwmon support 2017-01-20 14:42:51 -05:00
Makefile net: dsa: Remove hwmon support 2017-01-20 14:42:51 -05:00
slave.c net: dsa: pass bridge device when a port leaves 2017-01-29 18:42:46 -05:00
tag_brcm.c net: dsa: store a dsa_port in dsa_slave_priv 2017-01-29 18:42:46 -05:00
tag_dsa.c net: dsa: store a dsa_port in dsa_slave_priv 2017-01-29 18:42:46 -05:00
tag_edsa.c net: dsa: store a dsa_port in dsa_slave_priv 2017-01-29 18:42:46 -05:00
tag_qca.c net: dsa: store a dsa_port in dsa_slave_priv 2017-01-29 18:42:46 -05:00
tag_trailer.c net: dsa: store a dsa_port in dsa_slave_priv 2017-01-29 18:42:46 -05:00