mlxsw: Support FLOW_ACTION_MANGLE for SIP and DIP IPv4 addresses
authorDanielle Ratson <danieller@nvidia.com>
Sun, 6 Feb 2022 15:36:11 +0000 (17:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Feb 2022 11:59:57 +0000 (11:59 +0000)
commitd7809b620ff3cabccb8bf16d1a9cc7311bc3eef6
tree85dd3fb0ff6df446f4f1097cd41822211bec3f92
parente3541022e48ba9ae5cf0d5e9be2cd5bb8c97a4b7
mlxsw: Support FLOW_ACTION_MANGLE for SIP and DIP IPv4 addresses

Spectrum-2 supports an ACL action SIP_DIP, which allows IPv4 and IPv6
source and destination addresses change. Offload suitable mangles to
the IPv4 address change action.

Signed-off-by: Danielle Ratson <danieller@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/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