]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mlxsw: spectrum: Reduce priority of locally delivered packets
authorIdo Schimmel <idosch@mellanox.com>
Mon, 25 May 2020 23:05:49 +0000 (02:05 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2020 03:33:58 +0000 (20:33 -0700)
To align with recent recommended values. Will be configurable by future
patches.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
tools/testing/selftests/drivers/net/mlxsw/sharedbuffer.sh

index 5fe51ee8a2066d761744a620f2684f6f13f3f248..b10e5aeaedef24ca5c6fd1b5e4f7966adfe43de7 100644 (file)
@@ -4235,11 +4235,11 @@ static int mlxsw_sp_trap_groups_set(struct mlxsw_core *mlxsw_core)
                        tc = 4;
                        break;
                case MLXSW_REG_HTGT_TRAP_GROUP_SP_MC_SNOOPING:
-               case MLXSW_REG_HTGT_TRAP_GROUP_SP_IP2ME:
                        priority = 3;
                        tc = 3;
                        break;
                case MLXSW_REG_HTGT_TRAP_GROUP_SP_NEIGH_DISCOVERY:
+               case MLXSW_REG_HTGT_TRAP_GROUP_SP_IP2ME:
                case MLXSW_REG_HTGT_TRAP_GROUP_SP_IPV6:
                case MLXSW_REG_HTGT_TRAP_GROUP_SP_PTP1:
                case MLXSW_REG_HTGT_TRAP_GROUP_SP_DHCP:
index 58f3a05f08aff78f3eba570a7988b1dd2c7acb95..7d9e73a43a49b14193999814ab9ea1972200fac2 100755 (executable)
@@ -15,7 +15,7 @@ source mlxsw_lib.sh
 SB_POOL_ING=0
 SB_POOL_EGR_CPU=10
 
-SB_ITC_CPU_IP=3
+SB_ITC_CPU_IP=2
 SB_ITC_CPU_ARP=2
 SB_ITC=0