Skip to content

Commit 9680155

Browse files
Shalom Toledodavem330
authored andcommitted
mlxsw: spectrum: Fix IP2ME CPU policer configuration
The CPU policer used to police packets being trapped via a local route (IP2ME) was incorrectly configured to police based on bytes per second instead of packets per second. Change the policer to police based on packets per second and avoid packet loss under certain circumstances. Fixes: 9148e7c ("mlxsw: spectrum: Add policers for trap groups") Signed-off-by: Shalom Toledo <[email protected]> Signed-off-by: Ido Schimmel <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent a277d51 commit 9680155

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3568,7 +3568,6 @@ static int mlxsw_sp_cpu_policers_set(struct mlxsw_core *mlxsw_core)
35683568
burst_size = 7;
35693569
break;
35703570
case MLXSW_REG_HTGT_TRAP_GROUP_SP_IP2ME:
3571-
is_bytes = true;
35723571
rate = 4 * 1024;
35733572
burst_size = 4;
35743573
break;

0 commit comments

Comments
 (0)