Skip to content

Commit 3bfb25f

Browse files
Sindhu-Devalerleon
authored andcommitted
RDMA/irdma: Fix op_type reporting in CQEs
The op_type field CQ poll info structure is incorrectly filled in with the queue type as opposed to the op_type received in the CQEs. The wrong opcode could be decoded and returned to the ULP. Copy the op_type field received in the CQE in the CQ poll info structure. Fixes: 2441977 ("RDMA/irdma: Fix RQ completion opcode") Signed-off-by: Sindhu Devale <[email protected]> Signed-off-by: Shiraz Saleem <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Leon Romanovsky <[email protected]>
1 parent 5c719d7 commit 3bfb25f

File tree

1 file changed

+1
-1
lines changed
  • drivers/infiniband/hw/irdma

1 file changed

+1
-1
lines changed

drivers/infiniband/hw/irdma/uk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,7 @@ int irdma_uk_cq_poll_cmpl(struct irdma_cq_uk *cq,
11611161
}
11621162
wqe_idx = (u32)FIELD_GET(IRDMA_CQ_WQEIDX, qword3);
11631163
info->qp_handle = (irdma_qp_handle)(unsigned long)qp;
1164-
info->op_type = (u8)FIELD_GET(IRDMA_CQ_SQ, qword3);
1164+
info->op_type = (u8)FIELD_GET(IRDMACQ_OP, qword3);
11651165

11661166
if (info->q_type == IRDMA_CQE_QTYPE_RQ) {
11671167
u32 array_idx;

0 commit comments

Comments
 (0)