]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit37c216bd3b7a9050532510585eea2b5d75e0a74d
tree8c7f0702aa133a2e0afd7a8f48c996f04567b48f
parent729129b908fb822c04e399ef42dac0f5c2a8157e
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