net/mlx5: HWS, added actions handling
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Wed, 19 Jun 2024 23:31:59 +0000 (02:31 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 9 Sep 2024 18:10:04 +0000 (11:10 -0700)
commit504e536d90104c850731840d3fbc95acf251f11b
treea2ff228cb54da6ece4cbf06efbbd45b58d1ea00b
parent00b9f0daefd7670356e592d418c890acf9179c94
net/mlx5: HWS, added actions handling

When a packet matches a flow, the actions specified for the flow are
applied. The supported actions include (but not limited to) the following:
 - drop: packet processing is stopped
 - go to vport: packet is forwarded to a specified vport
 - go to flow table: packet is forwarded to a specified table
   and processing continues there
 - push/pop vlan: add/remove vlan header respectively to/from the packet
 - insert/remove header: add/remove a user-defined header to/from
   the packet
 - counter: count the packet bytes in the specified counter
 - tag: tag the matching flow with a provided tag value
 - reformat: change the packet format by adding or removing some
   of its headers
 - modify header: modify the value of the packet headers with
   set/add/copy ops
 - range: match packet on range of values

Reviewed-by: Erez Shitrit <erezsh@nvidia.com>
Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_action.h [new file with mode: 0644]