mlxsw: spectrum: remove FDB entry in case we get unknown object notification
authorJiri Pirko <jiri@mellanox.com>
Thu, 7 Jan 2016 10:50:30 +0000 (11:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 10 Jan 2016 02:06:33 +0000 (21:06 -0500)
commit12f1501e7511958b3a7244e24f290803d0a3c41f
tree0f95870bb5a010d74ad3d79092bbeff0f354aa7e
parent2fa9d45e16089b499909d807025f0d66b2442d57
mlxsw: spectrum: remove FDB entry in case we get unknown object notification

It may happen that we get notification for FDB entry for object (port,
lag, vport), which does not exist. Currently we ignore that, which only
causes this being re-sent in next notification. The entry will never
disappear. So get rid of it by simply removing it using SFD register.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c