Commit 6a23f9a4 authored by Petr Machata's avatar Petr Machata Committed by David S. Miller

mlxsw: spectrum_buffers: Tweak SBMM configuration

The SBMM register configures shared buffer allocation and settings for
MC packets according to switch priority. The recommended values are no
reserved buffer and alpha of 1/4, which corresponds to buf_max of 6.
Update mlxsw_sp_sb_mms accordingly.
Signed-off-by: default avatarPetr Machata <petrm@mellanox.com>
Reviewed-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e83c045e
......@@ -566,21 +566,21 @@ struct mlxsw_sp_sb_mm {
}
static const struct mlxsw_sp_sb_mm mlxsw_sp_sb_mms[] = {
MLXSW_SP_SB_MM(20000, 0xff, 4),
MLXSW_SP_SB_MM(20000, 0xff, 4),
MLXSW_SP_SB_MM(20000, 0xff, 4),
MLXSW_SP_SB_MM(20000, 0xff, 4),
MLXSW_SP_SB_MM(20000, 0xff, 4),
MLXSW_SP_SB_MM(20000, 0xff, 4),
MLXSW_SP_SB_MM(20000, 0xff, 4),
MLXSW_SP_SB_MM(20000, 0xff, 4),
MLXSW_SP_SB_MM(20000, 0xff, 4),
MLXSW_SP_SB_MM(20000, 0xff, 4),
MLXSW_SP_SB_MM(20000, 0xff, 4),
MLXSW_SP_SB_MM(20000, 0xff, 4),
MLXSW_SP_SB_MM(20000, 0xff, 4),
MLXSW_SP_SB_MM(20000, 0xff, 4),
MLXSW_SP_SB_MM(20000, 0xff, 4),
MLXSW_SP_SB_MM(0, 6, 4),
MLXSW_SP_SB_MM(0, 6, 4),
MLXSW_SP_SB_MM(0, 6, 4),
MLXSW_SP_SB_MM(0, 6, 4),
MLXSW_SP_SB_MM(0, 6, 4),
MLXSW_SP_SB_MM(0, 6, 4),
MLXSW_SP_SB_MM(0, 6, 4),
MLXSW_SP_SB_MM(0, 6, 4),
MLXSW_SP_SB_MM(0, 6, 4),
MLXSW_SP_SB_MM(0, 6, 4),
MLXSW_SP_SB_MM(0, 6, 4),
MLXSW_SP_SB_MM(0, 6, 4),
MLXSW_SP_SB_MM(0, 6, 4),
MLXSW_SP_SB_MM(0, 6, 4),
MLXSW_SP_SB_MM(0, 6, 4),
};
#define MLXSW_SP_SB_MMS_LEN ARRAY_SIZE(mlxsw_sp_sb_mms)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment