[2/2] net/mlx5/hws: add DROP action to multi destination actions
Checks
Commit Message
From: Tamar Mashiah <tmashiah@nvidia.com>
Add DROP action to multi destination actions, set NOP
destination type when DROP is specified.
cc: stable@dpdk.org
Signed-off-by: Tamar Mashiah <tmashiah@nvidia.com>
---
drivers/net/mlx5/hws/mlx5dr_action.c | 4 ++++
drivers/net/mlx5/hws/mlx5dr_cmd.c | 4 ++++
2 files changed, 8 insertions(+)
Comments
> -----Original Message-----
> From: Gregory Etelson <getelson@nvidia.com>
> Sent: Thursday, February 13, 2025 9:33 AM
> To: dev@dpdk.org
> Cc: Gregory Etelson <getelson@nvidia.com>; Maayan Kashani
> <mkashani@nvidia.com>; Raslan Darawsheh <rasland@nvidia.com>; Tamar
> Mashiah <tmashiah@nvidia.com>; stable@dpdk.org
> Subject: [PATCH 2/2] net/mlx5/hws: add DROP action to multi destination actions
>
> External email: Use caution opening links or attachments
>
>
> From: Tamar Mashiah <tmashiah@nvidia.com>
>
> Add DROP action to multi destination actions, set NOP destination type when
> DROP is specified.
>
> cc: stable@dpdk.org
>
> Signed-off-by: Tamar Mashiah <tmashiah@nvidia.com>
Acked-by: Dariusz Sosnowski <dsosnowski@nvidia.com>
Best regards,
Dariusz Sosnowski
@@ -2389,6 +2389,10 @@ mlx5dr_action_create_dest_array(struct mlx5dr_context *ctx,
dest_list[i].destination_id = dests[i].dest->devx_dest.devx_obj->id;
fte_attr.action_flags |= MLX5_FLOW_CONTEXT_ACTION_FWD_DEST;
break;
+ case MLX5DR_ACTION_TYP_DROP:
+ dest_list[i].destination_type = MLX5_FLOW_DESTINATION_TYPE_NOP;
+ fte_attr.action_flags |= MLX5_FLOW_CONTEXT_ACTION_FWD_DEST;
+ break;
case MLX5DR_ACTION_TYP_REFORMAT_L2_TO_TNL_L2:
case MLX5DR_ACTION_TYP_REFORMAT_L2_TO_TNL_L3:
packet_reformat = mlx5dr_action_dest_array_process_reformat
@@ -239,6 +239,10 @@ mlx5dr_cmd_set_fte(struct ibv_context *ctx,
dest->ext_reformat->id);
}
break;
+ case MLX5_FLOW_DESTINATION_TYPE_NOP:
+ MLX5_SET(dest_format, in_dests, destination_type,
+ dest->destination_type);
+ break;
default:
rte_errno = EOPNOTSUPP;
goto free_devx;