Skip to content

Commit

Permalink
mlxsw: spectrum_buffers: Tweak SBMM configuration
Browse files Browse the repository at this point in the history
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: Petr Machata <petrm@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Petr Machata authored and David S. Miller committed Sep 20, 2018
1 parent e83c045 commit 6a23f9a
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6a23f9a

Please sign in to comment.