OSDN Git Service

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)
commitdd8c77d597086cb4aa4d5d0f9f61f98c491bb122
tree9575fd50652bcfb6c346ef624306fe3b3ac3fbc5
parentfad8e1b6d52de875a63a64c465be7349958bb561
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