]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Flip driver to use emulated 802.1Q FIDs
authorIdo Schimmel <idosch@mellanox.com>
Sun, 25 Nov 2018 09:43:59 +0000 (09:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Nov 2018 23:27:08 +0000 (15:27 -0800)
commit7f0429f75bff46b82c842d90dc1f70261fb62ba3
treec8cf6625f3fd7d0f9bf0b52feb81891ed83a4ce8
parenta33f8413ef44ae7bc8d84e9a047428160b46715a
mlxsw: spectrum: Flip driver to use emulated 802.1Q FIDs

Replace 802.1Q FIDs and VLAN RIFs with their emulated counterparts.

The emulated 802.1Q FIDs are actually 802.1D FIDs and thus use the same
flood tables, of per-FID type. Therefore, add 4K-1 entries to the
per-FID flood tables for the new FIDs and get rid of the FID-offset
flood tables that were used by the old 802.1Q FIDs.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c