From 00f5d96f04337dce0a24fdf0da06f5991c981e46 Mon Sep 17 00:00:00 2001 From: Jieqiang Wang Date: Mon, 20 Mar 2023 16:58:14 +0800 Subject: rdma: disable compressed CQE mode for txq CQ Previously we encountered the issue of failing to create completion queues on some Arm platforms because DPDK may set MLX5_CQE_SIZE to 128 if DPDK MLX PMDs are built and DPDK plugin is loaded, which does not satisfy the requirement of 64B size CQE by RDMA plugin. We fixed this issue in 844a0e8b0("always use 64 byte CQEs for MLX5"), but some of CSIT test cases failed due to this code change. It turns out that we don't need to specify compressed CQE mode for txq CQ because RDMA tx doesn't have the code logic to handle compressed CQEs, which might cause unexpected behavior if it is enabled. Type: fix Fixes: 844a0e8b0 ("always use 64 byte CQEs for MLX5") Signed-off-by: Jieqiang Wang Change-Id: I7909a6d44b15bcf39c15dfac9377b65520a0cbfb --- src/plugins/rdma/device.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/rdma/device.c b/src/plugins/rdma/device.c index 554304c1daf..44ca516d225 100644 --- a/src/plugins/rdma/device.c +++ b/src/plugins/rdma/device.c @@ -730,9 +730,7 @@ rdma_txq_init (vlib_main_t * vm, rdma_device_t * rd, u16 qid, u32 n_desc) struct ibv_cq_init_attr_ex cqa = {}; struct ibv_cq_ex *cqex; struct mlx5dv_cq_init_attr dvcq = {}; - dvcq.comp_mask = MLX5DV_CQ_INIT_ATTR_MASK_COMPRESSED_CQE | - MLX5DV_CQ_INIT_ATTR_MASK_CQE_SIZE; - dvcq.cqe_comp_res_format = MLX5DV_CQE_RES_FORMAT_HASH; + dvcq.comp_mask = MLX5DV_CQ_INIT_ATTR_MASK_CQE_SIZE; dvcq.cqe_size = 64; cqa.cqe = n_desc; if ((cqex = mlx5dv_create_cq (rd->ctx, &cqa, &dvcq)) == 0) -- cgit 1.2.3-korg