diff mbox

[rdma-core,1/2] qedr: Configure byte_len in read/send WC

Message ID 1497279852-30901-2-git-send-email-Ram.Amrani@cavium.com (mailing list archive)
State Changes Requested
Headers show

Commit Message

Amrani, Ram June 12, 2017, 3:04 p.m. UTC
Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com>
---
 providers/qedr/qelr_verbs.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/providers/qedr/qelr_verbs.c b/providers/qedr/qelr_verbs.c
index 676b18c..358f3f7 100644
--- a/providers/qedr/qelr_verbs.c
+++ b/providers/qedr/qelr_verbs.c
@@ -1583,6 +1583,7 @@  static int process_req(struct qelr_qp *qp, struct qelr_cq *cq, int num_entries,
 		case IBV_WC_RDMA_READ:
 		case IBV_WC_SEND:
 		case IBV_WC_BIND_MW:
+			wc->byte_len = qp->wqe_wr_id[qp->sq.cons].bytes_len;
 			DP_VERBOSE(cxt->dbg_fp, QELR_MSG_CQ,
 				   "POLL REQ CQ: IBV_WC_RDMA_READ / IBV_WC_SEND\n");
 			break;