mlxsw: spectrum: Offload learning to the switch ASIC
authorIdo Schimmel <idosch@mellanox.com>
Wed, 24 Aug 2016 10:00:27 +0000 (12:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Aug 2016 16:41:12 +0000 (09:41 -0700)
commit89b548f0cfad8322cefe777746e4c12f0ab9ba60
tree8c7f0702aa133a2e0afd7a8f48c996f04567b48f
parent584d73df06253f206e31ff897a475283167bf0f0
mlxsw: spectrum: Offload learning to the switch ASIC

Up until now we simply stored the learning configuration of a bridge
port in the driver and decided whether to learn a new FDB record based
on this value.

However, this is sub-optimal in cases where learning is disabled on the
bridge port, as the device repeatedly generates learning notifications
for the same record.

Instead, offload the learning configuration to the device, thereby
preventing it from generating notifications when learning is disabled.

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