diff --git a/providers/irdma/uk.c b/providers/irdma/uk.c index 0a791ba4a..b8f64b69a 100644 --- a/providers/irdma/uk.c +++ b/providers/irdma/uk.c @@ -1213,10 +1213,6 @@ int irdma_uk_cq_poll_cmpl(struct irdma_cq_uk *cq, info->bytes_xfered = (__u32)FIELD_GET(IRDMACQ_PAYLDLEN, qword0); - if (info->imm_valid) - info->op_type = IRDMA_OP_TYPE_REC_IMM; - else - info->op_type = IRDMA_OP_TYPE_REC; if (qword3 & IRDMACQ_STAG) { info->stag_invalid_set = true; info->inv_stag = (__u32)FIELD_GET(IRDMACQ_INVSTAG, qword2); diff --git a/providers/irdma/uverbs.c b/providers/irdma/uverbs.c index 890c8ddfd..649428f59 100644 --- a/providers/irdma/uverbs.c +++ b/providers/irdma/uverbs.c @@ -457,6 +457,7 @@ static struct ibv_cq_ex *ucreate_cq(struct ibv_context *context, ret = ibv_cmd_create_cq_ex(context, attr_ex, &iwucq->verbs_cq, &cmd.ibv_cmd, sizeof(cmd), &resp.ibv_resp, sizeof(resp), 0); + attr_ex->cqe = ncqe; if (ret) { errno = ret; goto err_dereg_shadow;