Skip to content

mlxsw: Add SIP and DIP mangling support

Ido Schimmel netdev 1 version Applied

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

  1. v1 Latest4 patches 0 repliesApplied 4/4

Patches in v1 All 4 applied

#Subject and filesSizeRepliesApplied
1/4mlxsw: core_acl_flex_actions: Add SIP_DIP_ACTIONdrivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c+45 -00 repliesApplied
2/4mlxsw: Support FLOW_ACTION_MANGLE for SIP and DIP IPv4 addressesdrivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.h drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c+47 -00 repliesApplied
3/4mlxsw: Support FLOW_ACTION_MANGLE for SIP and DIP IPv6 addressesdrivers/net/ethernet/mellanox/mlxsw/spectrum.h drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c+103 -110 repliesApplied
4/4selftests: forwarding: Add a test for pedit munge SIP and DIPtools/testing/selftests/net/forwarding/pedit_ip.sh+201 -00 repliesApplied

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchPetr Machata
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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