net: dsa: Move VLAN filtering syncing out of dsa_switch_bridge_leave
authorTobias Waldekranz <tobias@waldekranz.com>
Mon, 24 Jan 2022 21:09:43 +0000 (22:09 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jan 2022 11:45:39 +0000 (11:45 +0000)
commit381a730182f1d174e1950cd4e63e885b1c302051
tree6ad5f33c5329be207fc3948e96dab0c05090707c
parent51d555cfdcc60436850f75daa6e379ba08e7a68c
net: dsa: Move VLAN filtering syncing out of dsa_switch_bridge_leave

Most of dsa_switch_bridge_leave was, in fact, dealing with the syncing
of VLAN filtering for switches on which that is a global
setting. Separate the two phases to prepare for the cross-chip related
bugfix in the following commit.

Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/switch.c