]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'mlxsw-Offload-TC-action-skbedit-priority'
authorDavid S. Miller <davem@davemloft.net>
Fri, 20 Mar 2020 04:09:20 +0000 (21:09 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Mar 2020 04:09:20 +0000 (21:09 -0700)
commit2527f46a445302d3a10434415304e7494be4b9b0
tree734f77c807a40db4b0902c07f77c2d04bd16d39c
parentfd2e13c4e2b2a25cd4cfc2bf414f7c83f50c89bc
parent4c2aedd3eddccca71ef043d1cb66bf0336d8721d
Merge branch 'mlxsw-Offload-TC-action-skbedit-priority'

Ido Schimmel says:

====================
mlxsw: Offload TC action skbedit priority

Petr says:

The TC action "skbedit priority P" has the effect of assigning skbprio of P
to SKBs that it's applied on. In HW datapath of a switch, the corresponding
action is assignment of internal switch priority. Spectrum switches allow
setting of packet priority based on an ACL action, which is good match for
the skbedit priority gadget. This patchset therefore implements offloading
of this action to the Spectrum ACL engine.

After a bit of refactoring in patch #1, patch #2 extends the skbedit action
to support offloading of "priority" subcommand.

On mlxsw side, in patch #3, the QOS_ACTION flexible action is added, with
fields necessary for priority adjustment. In patch #4, "skbedit priority"
is connected to that action.

Patch #5 implements a new forwarding selftest, suitable for both SW- and
HW-datapath testing.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>