Skip to contentSkip to conversation

mlxsw: spectrum: Change IP2ME CPU policer rate and burst size values

PATCH Applied Ido Schimmel 2 participants 2 messages Feb 18, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mlxsw: spectrum: Change IP2ME CPU policer rate and burst size values

From: Shalom Toledo <[email protected]>

The IP2ME packet trap is triggered by packets hitting local routes. After evaluating current defaults used by the driver it was decided to reduce the amount of traffic generated by this trap to 1Kpps and increase the burst size. This is inline with similarly deployed systems.

---
 drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/mellanox/mlxsw/spectrum.c +2 -2
index abac923a8d04..bc349d8ca08a 100644
@@ -3739,8 +3739,8 @@ static int mlxsw_sp_cpu_policers_set(struct mlxsw_core *mlxsw_core)
 			burst_size = 7;
 			break;
 		case MLXSW_REG_HTGT_TRAP_GROUP_SP_IP2ME:
-			rate = 4 * 1024;
-			burst_size = 4;
+			rate = 1024;
+			burst_size = 7;
 			break;
 		default:
 			continue;
Signature · 1 line
2.20.1
maintainer Applied
#1 lore raw

From: Ido Schimmel <[email protected]>
Date: Mon, 18 Feb 2019 07:19:44 +0000

Quoted 9 lines

From: Shalom Toledo <[email protected]>

The IP2ME packet trap is triggered by packets hitting local routes. After evaluating current defaults used by the driver it was decided to reduce the amount of traffic generated by this trap to 1Kpps and increase the burst size. This is inline with similarly deployed systems.

Applied, thanks.