Skip to content

Commit

Permalink
providers/irdma: Use s/g array in post send only when its valid
Browse files Browse the repository at this point in the history
[ Upstream commit 7bc6e3b ]

Send with invalidate verb call can pass in an
uninitialized s/g array with 0 sge's which is
filled into irdma WQE and causes a HW asynchronous event.

Fix this by using the s/g array in irdma post send only when its valid.

Fixes: 3bebdf5 ("rdma-core/irdma: Add user/kernel shared libraries")
Signed-off-by: Tatyana Nikolova tatyana.e.nikolova@intel.com
Signed-off-by: Sindhu-Devale <sindhu.devale@intel.com>
Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
  • Loading branch information
Sindhu-Devale authored and nmorey committed Sep 21, 2022
1 parent 2cd17b0 commit 03ebdd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion providers/irdma/uk.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,8 @@ enum irdma_status_code irdma_uk_send(struct irdma_qp_uk *qp,
FIELD_PREP(IRDMAQPSQ_IMMDATA, info->imm_data));
i = 0;
} else {
qp->wqe_ops.iw_set_fragment(wqe, 0, op_info->sg_list,
qp->wqe_ops.iw_set_fragment(wqe, 0,
frag_cnt ? op_info->sg_list : NULL,
qp->swqe_polarity);
i = 1;
}
Expand Down

0 comments on commit 03ebdd6

Please sign in to comment.