mbox series

[net-next,0/4] mlxsw: Add SIP and DIP mangling support

Message ID 20220206153613.763944-1-idosch@nvidia.com (mailing list archive)
Headers show
Series mlxsw: Add SIP and DIP mangling support | expand

Message

Ido Schimmel Feb. 6, 2022, 3:36 p.m. UTC
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

Comments

patchwork-bot+netdevbpf@kernel.org Feb. 7, 2022, 12:10 p.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:

On Sun,  6 Feb 2022 17:36:09 +0200 you wrote:
> 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.
> 
> [...]

Here is the summary with links:
  - [net-next,1/4] mlxsw: core_acl_flex_actions: Add SIP_DIP_ACTION
    https://git.kernel.org/netdev/net-next/c/e3541022e48b
  - [net-next,2/4] mlxsw: Support FLOW_ACTION_MANGLE for SIP and DIP IPv4 addresses
    https://git.kernel.org/netdev/net-next/c/d7809b620ff3
  - [net-next,3/4] mlxsw: Support FLOW_ACTION_MANGLE for SIP and DIP IPv6 addresses
    https://git.kernel.org/netdev/net-next/c/463e1ab82a41
  - [net-next,4/4] selftests: forwarding: Add a test for pedit munge SIP and DIP
    https://git.kernel.org/netdev/net-next/c/92ad3828944e

You are awesome, thank you!