]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: Support FLOW_ACTION_MANGLE for SIP and DIP IPv6 addresses
authorDanielle Ratson <danieller@nvidia.com>
Sun, 6 Feb 2022 15:36:12 +0000 (17:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Feb 2022 11:59:57 +0000 (11:59 +0000)
commit463e1ab82a41c8dd1154d81d3359cd3ae2411d92
treea7f82466c20c2b4e0a00407b5d1153890cc18ded
parentd7809b620ff3cabccb8bf16d1a9cc7311bc3eef6
mlxsw: Support FLOW_ACTION_MANGLE for SIP and DIP IPv6 addresses

Spectrum-2 supports an ACL action SIP_DIP, which allows IPv4 and IPv6
source and destination addresses change. Offload suitable mangles to
the IPv6 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/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c