mlxsw: spectrum: Add missing rollback in flood configuration
authorIdo Schimmel <idosch@mellanox.com>
Fri, 6 May 2016 20:18:40 +0000 (22:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 May 2016 22:27:43 +0000 (18:27 -0400)
commit288928658583a27256c6c295aeccd95a3ddcefce
tree066c373b3ad57d2bb54ef42676f4044be7f41861
parent51554db2d23f71989e040df838613bbae554d4e0
mlxsw: spectrum: Add missing rollback in flood configuration

When we fail to set the flooding configuration for the broadcast and
unregistered multicast traffic, we should revert the flooding
configuration of the unknown unicast traffic.

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