public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH rdma-core] vmw_pvrdma: Fix SRQN returned to library
@ 2018-02-12 18:42 Adit Ranadive
       [not found] ` <1518460956-4629-1-git-send-email-aditr-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Adit Ranadive @ 2018-02-12 18:42 UTC (permalink / raw)
  To: dledford-H+wXaHxf7aLQT0dZR+AlfA, jgg-VPRAkNaXOzVWk0Htik3J/w,
	leon-DgEjT+Ai2ygdnm+yROfE0A
  Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA, Aditya Sarwade,
	stable-Xl5UnYtxxKxKUA01WzcqbQ

From: Aditya Sarwade <asarwade-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org>

Here's a fix for the vmw_pvrdma library. It needs to go into the
stable branch for 16.0 as well since we can then add it to OFED-4.8-2.

The PR is here:
https://github.com/linux-rdma/rdma-core/pull/291

Thanks,
Adit
---

Use the correct SQN reported by the driver.

Fixes: 4c8ed14eb6b7 ("vmw_pvrdma: Add SRQ support")
Reviewed-by: Adit Ranadive <aditr-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org>
Reviewed-by: Bryan Tan <bryantan-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org>
Signed-off-by: Aditya Sarwade <asarwade-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org>
Cc: stable-Xl5UnYtxxKxKUA01WzcqbQ@public.gmane.org
---
 providers/vmw_pvrdma/qp.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/providers/vmw_pvrdma/qp.c b/providers/vmw_pvrdma/qp.c
index 34c8020..efcc99b 100644
--- a/providers/vmw_pvrdma/qp.c
+++ b/providers/vmw_pvrdma/qp.c
@@ -108,7 +108,7 @@ struct ibv_srq *pvrdma_create_srq(struct ibv_pd *pd,
 {
 	struct pvrdma_device *dev = to_vdev(pd->context->device);
 	struct user_pvrdma_create_srq cmd;
-	struct ib_uverbs_create_srq_resp resp;
+	struct user_pvrdma_create_srq_resp resp;
 	struct pvrdma_srq *srq;
 	int ret;
 
@@ -142,12 +142,12 @@ struct ibv_srq *pvrdma_create_srq(struct ibv_pd *pd,
 
 	ret = ibv_cmd_create_srq(pd, &srq->ibv_srq, attr,
 				 &cmd.ibv_cmd, sizeof(cmd),
-				 &resp, sizeof(resp));
+				 &resp.ibv_resp, sizeof(resp));
 
 	if (ret)
 		goto err_free;
 
-	srq->srqn = resp.srqn;
+	srq->srqn = resp.udata.srqn;
 
 	return &srq->ibv_srq;
 
-- 
1.8.5.6

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

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-02-16  0:47 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-12 18:42 [PATCH rdma-core] vmw_pvrdma: Fix SRQN returned to library Adit Ranadive
     [not found] ` <1518460956-4629-1-git-send-email-aditr-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org>
2018-02-12 18:59   ` Jason Gunthorpe
     [not found]     ` <20180212185906.GE5005-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2018-02-12 22:23       ` Adit Ranadive
     [not found]         ` <ab90a493-3680-d776-e52b-3918b2bd1a6a-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org>
2018-02-12 22:26           ` Jason Gunthorpe
     [not found]             ` <20180212222650.GA10773-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2018-02-12 23:19               ` Adit Ranadive
2018-02-13 12:24   ` Nicolas Morey-Chaisemartin
     [not found]     ` <de50c35a-731d-bfb6-efe9-7f2ad83ea7b3-l3A5Bk7waGM@public.gmane.org>
2018-02-13 14:10       ` Llolsten Kaonga
2018-02-13 18:43       ` Adit Ranadive
2018-02-14  6:12       ` Adit Ranadive
     [not found]         ` <8b4f73e6-af5c-d5e2-5425-fbd706a50f66-pghWNbHTmq7QT0dZR+AlfA@public.gmane.org>
2018-02-14  7:59           ` Nicolas Morey-Chaisemartin
     [not found]             ` <b5512350-48f1-c4e6-096f-a44307bdf015-l3A5Bk7waGM@public.gmane.org>
2018-02-14  8:29               ` Adit Ranadive
2018-02-16  0:47               ` Adit Ranadive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox