Merge branch 'mlxsw-dip-sip-mangling'
authorDavid S. Miller <davem@davemloft.net>
Mon, 7 Feb 2022 11:59:57 +0000 (11:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Feb 2022 11:59:57 +0000 (11:59 +0000)
commitf485da3c111f8dabc1036a569cfb51a00d9b5416
tree0c023f45282ff1d8a36f62c96acf9aabbc325f50
parent47c1a9a4ea784db91de0000d8827472e2d4e4f84
parent92ad3828944e0c420990a41038920494272c255e
Merge branch 'mlxsw-dip-sip-mangling'

Ido Schimmel says:

====================
mlxsw: Add SIP and DIP mangling support

Danielle says:

On Spectrum-2 onwards, it is possible to overwrite SIP and DIP address
of an IPv4 or IPv6 packet in the ACL engine. That corresponds to pedit
munges of, respectively, ip src and ip dst fields, and likewise for ip6.
Offload these munges on the systems where they are supported.

Patchset overview:
Patch #1: introduces SIP_DIP_ACTION and its fields.
Patch #2-#3: adds the new pedit fields, and dispatches on them on
     Spectrum-2 and above.
Patch #4 adds a selftest.
====================

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