]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Align TC and trap priority
authorIdo Schimmel <idosch@mellanox.com>
Sun, 24 May 2020 21:51:02 +0000 (00:51 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 May 2020 02:32:23 +0000 (19:32 -0700)
commit565720f19f74e81b29e6a5e99d1dc036bd8a1b82
tree47d1cfeca6f98fff80b107c1f12b383e6fb3d33e
parent4547021424f39bc5c2afd863f491ca9c9f623336
mlxsw: spectrum: Align TC and trap priority

The traffic class (TC) attribute of packet traps determines through which
TC a packet trap will be scheduled through the CPU port.

The priority attribute determines which trap will be triggered in case
several packet traps match a packet.

We try to configure these attributes to the same value for all packet
traps as there is little reason not to.

Some packet traps did not use the same value, so rectify that now.

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
drivers/net/ethernet/mellanox/mlxsw/spectrum_trap.c