From: Michal Kalderon Date: Mon, 5 Jun 2017 13:32:26 +0000 (+0300) Subject: RDMA/qedr: Initialize byte_len in WC of READ and SEND commands X-Git-Tag: MMI-PSA29.97-13-9~4931^2~97 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dac2738607de3d2bb99bae91c9054a2d753af18b;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git RDMA/qedr: Initialize byte_len in WC of READ and SEND commands Initialize byte_len in work completion of RDMA_READ and RDMA_SEND. Exposed by uDAPL application. Signed-off-by: Michal Kalderon Signed-off-by: Doug Ledford --- diff --git a/drivers/infiniband/hw/qedr/verbs.c b/drivers/infiniband/hw/qedr/verbs.c index 17685cfea6a2..7add0cd09412 100644 --- a/drivers/infiniband/hw/qedr/verbs.c +++ b/drivers/infiniband/hw/qedr/verbs.c @@ -3209,6 +3209,10 @@ static int process_req(struct qedr_dev *dev, struct qedr_qp *qp, case IB_WC_REG_MR: qp->wqe_wr_id[qp->sq.cons].mr->info.completed++; break; + case IB_WC_RDMA_READ: + case IB_WC_SEND: + wc->byte_len = qp->wqe_wr_id[qp->sq.cons].bytes_len; + break; default: break; }