projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86816a0
)
RDMA/qedr: Initialize byte_len in WC of READ and SEND commands
author
Michal Kalderon
<Michal.Kalderon@cavium.com>
Mon, 5 Jun 2017 13:32:26 +0000
(16:32 +0300)
committer
Doug Ledford
<dledford@redhat.com>
Wed, 14 Jun 2017 17:02:00 +0000
(13:02 -0400)
Initialize byte_len in work completion of RDMA_READ and RDMA_SEND.
Exposed by uDAPL application.
Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/qedr/verbs.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/qedr/verbs.c
b/drivers/infiniband/hw/qedr/verbs.c
index 17685cfea6a2dcb435e659675805dcbc29139e7b..7add0cd09412946700709c78818a4d9c16d1d9bf 100644
(file)
--- 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;
}