diff options
author | Ido Schimmel <idosch@mellanox.com> | 2020-05-26 02:05:44 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-26 20:33:57 -0700 |
commit | 761bc42fbecff8cfb8e529451fd0f13800d050c4 (patch) | |
tree | a7ffcc89f420f9558273db709ff6c6a775c3834b | |
parent | 3c2d8a046a4cd0bc835f2e6cfbc12f41d7f4323e (diff) |
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>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c index e0811a7e13b9..e8c9fc4cb6fb 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.c @@ -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; |