[PATCH] libqedr: fix wc wr_id initialization on failure cases

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Yuval Bason <Yuval.Bason@xxxxxxxxxx>

Assign to a wc it's relevant wr_id in each completion status
(not only in success)

Signed-off-by: Yuval Bason <yuval.bason@xxxxxxxxxx>
Signed-off-by: Michal Kalderon <michal.kalderon@xxxxxxxxxx>
---
 providers/qedr/qelr_verbs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/providers/qedr/qelr_verbs.c b/providers/qedr/qelr_verbs.c
index 5d7aeb3..bac5aae 100644
--- a/providers/qedr/qelr_verbs.c
+++ b/providers/qedr/qelr_verbs.c
@@ -1771,6 +1771,7 @@ static void __process_resp_one(struct qelr_qp *qp, struct qelr_cq *cq,
 	uint8_t flags;
 
 	wc->opcode = IBV_WC_RECV;
+	wc->wr_id = wr_id;
 	wc->wc_flags = 0;
 
 	switch (resp->status) {
@@ -1815,7 +1816,6 @@ static void __process_resp_one(struct qelr_qp *qp, struct qelr_cq *cq,
 			break;
 		}
 
-		wc->wr_id = wr_id;
 		break;
 	default:
 		wc->status = IBV_WC_GENERAL_ERR;
-- 
2.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux