mlxsw: spectrum: Add support for VLAN ranges in flooding configuration
authorIdo Schimmel <idosch@mellanox.com>
Wed, 28 Oct 2015 09:16:57 +0000 (10:16 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Oct 2015 03:26:45 +0000 (12:26 +0900)
commit1b3433a942922953df43ef0bc0172119041364c5
tree4903eb649d7e5053d7a14039a8d90d38aa91229f
parent0d9b970cee612968c6b888b93736d991762b9edb
mlxsw: spectrum: Add support for VLAN ranges in flooding configuration

When enabling a range of VLANs on a bridged port we can configure
flooding for these VLANs by one register access instead of calling the
same register for each VLAN. This is accomplished by using the 'range'
field of the Switch Flooding Table Register (SFTR).

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