mlxsw: spectrum: Use dedicated trap group for sampled packets
The rate with which packets are sampled is determined by user space, so there is no need to associate such packets with a policer. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b33f5d9fb7
commit
ce3c3bf0bf
|
@ -5547,6 +5547,7 @@ enum mlxsw_reg_htgt_trap_group {
|
|||
MLXSW_REG_HTGT_TRAP_GROUP_SP_PTP0,
|
||||
MLXSW_REG_HTGT_TRAP_GROUP_SP_PTP1,
|
||||
MLXSW_REG_HTGT_TRAP_GROUP_SP_VRRP,
|
||||
MLXSW_REG_HTGT_TRAP_GROUP_SP_PKT_SAMPLE,
|
||||
|
||||
__MLXSW_REG_HTGT_TRAP_GROUP_MAX,
|
||||
MLXSW_REG_HTGT_TRAP_GROUP_MAX = __MLXSW_REG_HTGT_TRAP_GROUP_MAX - 1
|
||||
|
|
|
@ -4103,7 +4103,7 @@ static const struct mlxsw_listener mlxsw_sp_listener[] = {
|
|||
ROUTER_EXP, false),
|
||||
/* PKT Sample trap */
|
||||
MLXSW_RXL(mlxsw_sp_rx_listener_sample_func, PKT_SAMPLE, MIRROR_TO_CPU,
|
||||
false, SP_IP2ME, DISCARD),
|
||||
false, SP_PKT_SAMPLE, DISCARD),
|
||||
/* ACL trap */
|
||||
MLXSW_SP_RXL_NO_MARK(ACL0, TRAP_TO_CPU, IP2ME, false),
|
||||
/* Multicast Router Traps */
|
||||
|
@ -4252,6 +4252,7 @@ static int mlxsw_sp_trap_groups_set(struct mlxsw_core *mlxsw_core)
|
|||
priority = 1;
|
||||
tc = 1;
|
||||
break;
|
||||
case MLXSW_REG_HTGT_TRAP_GROUP_SP_PKT_SAMPLE:
|
||||
case MLXSW_REG_HTGT_TRAP_GROUP_SP_LBERROR:
|
||||
priority = 0;
|
||||
tc = 0;
|
||||
|
|
Loading…
Reference in New Issue