[dpdk-dev] [PATCH 2/2] common/mlx5: fix MMO configuration in QP
Raja Zidane
rzidane at nvidia.com
Thu Oct 28 15:58:50 CEST 2021
The QP extension valid bit was not set in the QP creation for MMO
configuration.
That caused the QP not to be connected to the GGA MMO engines,
and any MMO WQE job got CQE with an error.
Set the QP ext bit when MMO is configured.
Fixes: ddda0006188a ("common/mlx5: add MMO configuration for DevX queue pair")
Signed-off-by: Raja Zidane <rzidane at nvidia.com>
---
drivers/common/mlx5/mlx5_devx_cmds.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/common/mlx5/mlx5_devx_cmds.c b/drivers/common/mlx5/mlx5_devx_cmds.c
index fb7c8e986f..4f6a73510d 100644
--- a/drivers/common/mlx5/mlx5_devx_cmds.c
+++ b/drivers/common/mlx5/mlx5_devx_cmds.c
@@ -2055,6 +2055,8 @@ mlx5_devx_cmd_create_qp(void *ctx,
in, qpc_extension_and_pas_list);
void *qpc_ext = MLX5_ADDR_OF(qpc_extension_and_pas_list,
qpc_ext_and_pas_list, qpc_data_extension);
+
+ MLX5_SET(create_qp_in, in, qpc_ext, 1);
MLX5_SET(qpc_extension, qpc_ext, mmo, 1);
}
MLX5_SET(qpc, qpc, pm_state, MLX5_QP_PM_MIGRATED);
--
2.17.1
More information about the dev
mailing list