Skip to content

Commit

Permalink
providers/irdma: Do not override the raw op type in CQE
Browse files Browse the repository at this point in the history
[ Upstream commit 7f2d095 ]

Do not override the raw op type in RQ CQ completions,
because the opcode is written by HW in the CQE and
it matches the protocol opcode from the received
packet.

Fixes: c8b3aca ("providers/irdma: Fix RQ completion opcode")
Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
Signed-off-by: Nicolas Morey <nmorey@suse.com>
  • Loading branch information
mustafakismail authored and nmorey committed May 30, 2024
1 parent 517f28b commit 539228a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions providers/irdma/uk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 539228a

Please sign in to comment.