mlxsw: Add SIP and DIP mangling support
Status from this message: This series was applied to netdev/net-next.git (master)
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 4 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | mlxsw: core_acl_flex_actions: Add SIP_DIP_ACTIONdrivers/ | +45 | 0 replies | Applied |
| 2/4 | mlxsw: Support FLOW_ACTION_MANGLE for SIP and DIP IPv4 addressesdrivers/ drivers/ drivers/ | +47 | 0 replies | Applied |
| 3/4 | mlxsw: Support FLOW_ACTION_MANGLE for SIP and DIP IPv6 addressesdrivers/ drivers/ drivers/ | +103 | 0 replies | Applied |
| 4/4 | selftests: forwarding: Add a test for pedit munge SIP and DIPtools/ | +201 | 0 replies | Applied |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Petr Machata |
|---|---|
| 1/4 | R-b |
| 2/4 | R-b |
| 3/4 | R-b |
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next 0/4] 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.
Danielle Ratson (4):
mlxsw: core_acl_flex_actions: Add SIP_DIP_ACTION
mlxsw: Support FLOW_ACTION_MANGLE for SIP and DIP IPv4 addresses
mlxsw: Support FLOW_ACTION_MANGLE for SIP and DIP IPv6 addresses
selftests: forwarding: Add a test for pedit munge SIP and DIP
.../mellanox/mlxsw/core_acl_flex_actions.c | 77 +++++++ .../mellanox/mlxsw/core_acl_flex_actions.h | 3 + .../net/ethernet/mellanox/mlxsw/spectrum.h | 25 ++- .../ethernet/mellanox/mlxsw/spectrum_acl.c | 91 +++++++- .../ethernet/mellanox/mlxsw/spectrum_flower.c | 6 + .../selftests/net/forwarding/pedit_ip.sh | 201 ++++++++++++++++++ 6 files changed, 394 insertions(+), 9 deletions(-) create mode 100755 tools/testing/selftests/net/forwarding/pedit_ip.sh
Signature · 1 line
2.33.1