]> asedeno.scripts.mit.edu Git - linux.git/commit
mlxsw: spectrum: Set STP state when leaving 802.1D bridge
authorIdo Schimmel <idosch@mellanox.com>
Mon, 15 Feb 2016 12:19:54 +0000 (13:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Feb 2016 20:52:58 +0000 (15:52 -0500)
commit6a9863a62206dad8ad236bcde489978aedb072fa
tree5cbdf9d8dd417f8b2f1cb7da4cdb42b789621de2
parent1e5ad30c649a82a062ce79a87c1296e6c6f328c2
mlxsw: spectrum: Set STP state when leaving 802.1D bridge

When a VLAN device leaves a bridge its STP state is set to DISABLED,
which causes the hardware to discard any packets coming through the port
with this VLAN.

Fix that by setting STP state to FORWARDING when the device leaves its
bridge and allow traffic to be directed to CPU.

Fixes: 26f0e7fb15de ("mlxsw: spectrum: Add support for VLAN devices bridging")
Reported-by: Elad Raz <eladr@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c