From: Tal Shnaiderman Date: Mon, 26 Oct 2020 18:17:48 +0000 (+0200) Subject: common/mlx5: fix DevX SQ object creation X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=1912d158e1db1098fb81982dbb6013c213326837;p=dpdk.git common/mlx5: fix DevX SQ object creation Fix wrong assignment of allow_multi_pkt_send_wqe in mlx5_devx_cmd_create_sq. The incorrect assignment was introduced in the initial mlx5_devx_cmd_create_sq implementation. sq_attr->flush_in_error_en is mistakenly assigned to both allow_multi_pkt_send_wqe and flush_in_error_en, it was detected during Windows PMD development. The fix is simply assigning the right value in mlx5_devx_cmd_create_sq to sq_attr->allow_multi_pkt_send_wqe Fixes: ae18a1ae9692 ("net/mlx5: support Tx hairpin queues") Cc: stable@dpdk.org Signed-off-by: Tal Shnaiderman Acked-by: Matan Azrad --- diff --git a/drivers/common/mlx5/mlx5_devx_cmds.c b/drivers/common/mlx5/mlx5_devx_cmds.c index 5b0f8a8654..a13febebfd 100644 --- a/drivers/common/mlx5/mlx5_devx_cmds.c +++ b/drivers/common/mlx5/mlx5_devx_cmds.c @@ -1333,7 +1333,7 @@ mlx5_devx_cmd_create_sq(void *ctx, MLX5_SET(sqc, sq_ctx, fre, sq_attr->fre); MLX5_SET(sqc, sq_ctx, flush_in_error_en, sq_attr->flush_in_error_en); MLX5_SET(sqc, sq_ctx, allow_multi_pkt_send_wqe, - sq_attr->flush_in_error_en); + sq_attr->allow_multi_pkt_send_wqe); MLX5_SET(sqc, sq_ctx, min_wqe_inline_mode, sq_attr->min_wqe_inline_mode); MLX5_SET(sqc, sq_ctx, state, sq_attr->state);