]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_fid: Store 'bridge_type' as part of FID family
authorAmit Cohen <amcohen@nvidia.com>
Mon, 27 Jun 2022 07:06:12 +0000 (10:06 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 28 Jun 2022 12:31:36 +0000 (14:31 +0200)
commit6d4b250b3a6bbde33c2c7052e4cefb47f1306e0b
tree9575fd50652bcfb6c346ef624306fe3b3ac3fbc5
parent18266e0c380bd65bd4d0e075e09b7dc84db98614
mlxsw: spectrum_fid: Store 'bridge_type' as part of FID family

Currently, 'bridge_type' is an attribute of 'struct mlxsw_sp_flood_table',
which is defined per FID family. Instead, it can be an attribute of
'struct mlxsw_sp_fid_family' as all flood tables in the same family are of
the same type. This change will ease the configuration of
'SFMR.flood_bridge_type' which will be added in the next patch.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlxsw/spectrum_fid.c