From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ido Schimmel Subject: [PATCH net-next 10/13] mlxsw: spectrum_buffers: Tweak SBMM configuration Date: Thu, 20 Sep 2018 09:21:33 +0300 Message-ID: <20180920062136.11888-11-idosch@mellanox.com> References: <20180920062136.11888-1-idosch@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain Cc: davem@davemloft.net, jiri@mellanox.com, petrm@mellanox.com, mlxsw@mellanox.com, Ido Schimmel To: netdev@vger.kernel.org Return-path: Received: from mail-eopbgr00082.outbound.protection.outlook.com ([40.107.0.82]:18059 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731755AbeITMEI (ORCPT ); Thu, 20 Sep 2018 08:04:08 -0400 In-Reply-To: <20180920062136.11888-1-idosch@mellanox.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Petr Machata 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 Reviewed-by: Jiri Pirko Signed-off-by: Ido Schimmel --- .../mellanox/mlxsw/spectrum_buffers.c | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c index 7b9f79c7c025..12c61e0cc570 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c @@ -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) -- 2.17.1