mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-29 17:35:36 -04:00
mlxsw: spectrum: Use same switch case for identical groups
Trap groups that use the same policer settings can share the same switch case. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Reviewed-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
3c2d8a046a
commit
761bc42fbe
@@ -4168,9 +4168,6 @@ static int mlxsw_sp_cpu_policers_set(struct mlxsw_core *mlxsw_core)
|
||||
case MLXSW_REG_HTGT_TRAP_GROUP_SP_IPV6_ND:
|
||||
case MLXSW_REG_HTGT_TRAP_GROUP_SP_MULTICAST:
|
||||
case MLXSW_REG_HTGT_TRAP_GROUP_SP_FLOW_LOGGING:
|
||||
rate = 1024;
|
||||
burst_size = 7;
|
||||
break;
|
||||
case MLXSW_REG_HTGT_TRAP_GROUP_SP_IP2ME:
|
||||
rate = 1024;
|
||||
burst_size = 7;
|
||||
|
||||
Reference in New Issue
Block a user