summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/nes/nes_verbs.c
diff options
context:
space:
mode:
authorTatyana Nikolova <Tatyana.E.Nikolova@intel.com>2014-03-11 14:20:17 -0500
committerRoland Dreier <roland@purestorage.com>2014-03-17 10:04:16 -0700
commit43adff3979c8f887b364c887e447c443e2f835e8 (patch)
treeb073150635f0819714789c8d72dfe8dfffafc9ec /drivers/infiniband/hw/nes/nes_verbs.c
parent4ac79a70033cbb9b7fa2bb2f3770308359af8c12 (diff)
downloadop-kernel-dev-43adff3979c8f887b364c887e447c443e2f835e8.zip
op-kernel-dev-43adff3979c8f887b364c887e447c443e2f835e8.tar.gz
RDMA/nes: Fix for passing a valid QP pointer to the user space library
Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/nes/nes_verbs.c')
-rw-r--r--drivers/infiniband/hw/nes/nes_verbs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/nes/nes_verbs.c b/drivers/infiniband/hw/nes/nes_verbs.c
index 8308e36..797d887 100644
--- a/drivers/infiniband/hw/nes/nes_verbs.c
+++ b/drivers/infiniband/hw/nes/nes_verbs.c
@@ -1191,6 +1191,8 @@ static struct ib_qp *nes_create_qp(struct ib_pd *ibpd,
if (req.user_wqe_buffers) {
virt_wqs = 1;
}
+ if (req.user_qp_buffer)
+ nesqp->nesuqp_addr = req.user_qp_buffer;
if ((ibpd->uobject) && (ibpd->uobject->context)) {
nesqp->user_mode = 1;
nes_ucontext = to_nesucontext(ibpd->uobject->context);
OpenPOWER on IntegriCloud