]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_acl: Support FLOW_ACTION_MANGLE for TCP, UDP ports
authorPetr Machata <petrm@mellanox.com>
Sun, 21 Jun 2020 08:34:35 +0000 (11:34 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Jun 2020 23:32:11 +0000 (16:32 -0700)
commit74f0f993798442f20a962586a93de4c4ec0c77db
tree133fa37c60f7173eb84b0a70d0ffd15348348c10
parentea5bb15f2041696b33857d0c906c72eb19d94de7
mlxsw: spectrum_acl: Support FLOW_ACTION_MANGLE for TCP, UDP ports

Spectrum-2 supports an ACL action L4_PORT, which allows TCP and UDP source
and destination port number change. Offload suitable mangles to this
action.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.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