]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'mlxsw-Offload-TC-action-pedit-munge-tcp-udp-sport-dport'
authorDavid S. Miller <davem@davemloft.net>
Mon, 22 Jun 2020 23:32:11 +0000 (16:32 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Jun 2020 23:32:11 +0000 (16:32 -0700)
commit52c47b050a7fe94ad768dbaf8ad1d0f129c27d5e
treed63d9bd8fe003d4e5d144a995317107ef60664b6
parentd0655ad1d15fcf7f91d85c41f4a4b22083092cbe
parent22eac17506e4c111f643ec9eb7165ac9192909bf
Merge branch 'mlxsw-Offload-TC-action-pedit-munge-tcp-udp-sport-dport'

Ido Schimmel says:

====================
mlxsw: Offload TC action pedit munge tcp/udp sport/dport

Petr says:

On Spectrum-2 and Spectrum-3, it is possible to overwrite L4 port number of
a TCP or UDP packet in the ACL engine. That corresponds to the pedit munges
of tcp and udp sport resp. dport fields. Offload these munges on the
systems where they are supported.

The current offloading code assumes that all systems support the same set
of fields. This now changes, so in patch #1 first split handling of pedit
munges by chip type. The analysis of which packet field a given munge
describes is kept generic.

Patch #2 introduces the new flexible action fields. Patch #3 then adds the
new pedit fields, and dispatches on them on Spectrum>1.

Patch #4 adds a forwarding selftest for pedit dsfield, applicable to SW as
well as HW datapaths.
====================

Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>