mlxsw: spectrum: Notify bridge's FDB only based on learning_sync
authorIdo Schimmel <idosch@mellanox.com>
Wed, 27 Jan 2016 14:20:21 +0000 (15:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Jan 2016 23:55:31 +0000 (15:55 -0800)
commit45827d780aab533a777f965798018118b373cc0b
treecd5a58604c90da44d36499fe94ccc9e24fc7fce7
parent454911333b1d86e1d58a557be271bc6b7e9e7f10
mlxsw: spectrum: Notify bridge's FDB only based on learning_sync

When we disable learning on bridge port we should still update the
software bridge's FDB when entry pointing to this bridge port is
aged-out. We can otherwise have an inconsistency between software and
hardware tables.

Fixes: 8a1ab5d76639 ("mlxsw: spectrum: Implement FDB add/remove/dump for LAG")
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