Skip to content

Commit 69f289e

Browse files
pmachatakuba-moo
authored andcommitted
mlxsw: spectrum: Use CFF mode where available
Mark all Spectrum>2 systems as preferring CFF flood mode if supported by the firmware. Signed-off-by: Petr Machata <[email protected]> Reviewed-by: Amit Cohen <[email protected]> Reviewed-by: Ido Schimmel <[email protected]> Link: https://lore.kernel.org/r/8a3d2ad96b943f7e3f53f998bd333a14e19cd641.1701183892.git.petrm@nvidia.com Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 72a4ced commit 69f289e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/mellanox/mlxsw/spectrum.c

+2
Original file line numberDiff line numberDiff line change
@@ -3598,6 +3598,7 @@ static const struct mlxsw_config_profile mlxsw_sp2_config_profile = {
35983598
.used_cqe_time_stamp_type = 1,
35993599
.cqe_time_stamp_type = MLXSW_CMD_MBOX_CONFIG_PROFILE_CQE_TIME_STAMP_TYPE_UTC,
36003600
.lag_mode_prefer_sw = true,
3601+
.flood_mode_prefer_cff = true,
36013602
};
36023603

36033604
/* Reduce number of LAGs from full capacity (256) to the maximum supported LAGs
@@ -3626,6 +3627,7 @@ static const struct mlxsw_config_profile mlxsw_sp4_config_profile = {
36263627
.used_cqe_time_stamp_type = 1,
36273628
.cqe_time_stamp_type = MLXSW_CMD_MBOX_CONFIG_PROFILE_CQE_TIME_STAMP_TYPE_UTC,
36283629
.lag_mode_prefer_sw = true,
3630+
.flood_mode_prefer_cff = true,
36293631
};
36303632

36313633
static void

0 commit comments

Comments
 (0)