mlxsw: spectrum: Use existing flood setup when adding VLANs
authorIdo Schimmel <idosch@mellanox.com>
Thu, 1 Sep 2016 08:37:45 +0000 (10:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Sep 2016 16:44:56 +0000 (09:44 -0700)
commitaad8b6bae7c63fcf860c4c7ce693cb8ac5d4a511
tree24127f5c8d03e91ab062a52468f6d648860d6465
parentf1de7a28d53cfde8fa290d6c535eb690a4e1b5d5
mlxsw: spectrum: Use existing flood setup when adding VLANs

When a VLAN is added on a bridge port we should use the existing unicast
flood configuration of the port instead of assuming it's enabled.

Fixes: 0293038e0c36 ("mlxsw: spectrum: Add support for flood control")
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_switchdev.c