]> git.baikalelectronics.ru Git - kernel.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)
commit0062440ad1b51eb165c406b80c76956f7095317f
tree5cbdf9d8dd417f8b2f1cb7da4cdb42b789621de2
parentac550b747a5ad370b4b8fd08ded88084dab9d384
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: 6c159deab682 ("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