]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita7a3e0019895bb7d5bd6a097a112304e46e4cb85
tree85dd3fb0ff6df446f4f1097cd41822211bec3f92
parent4fc05904c6d1c3f95b50cc3587deb7accc059354
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