public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* XRC and ib_poll_cq
@ 2013-04-02 16:45 Shlomo Pongratz
       [not found] ` <515B0B35.3090401-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Shlomo Pongratz @ 2013-04-02 16:45 UTC (permalink / raw)
  To: Hefty, Sean, Or Gerlitz,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

Hi

 From the XRC annex I understand that WQE is obtained by polling the CQ 
attached to the XRC SRQ.
Now in "struct ib_wc" we have a pointer of type "struct ib_qp *", should 
the pointer be cast to "struct ib_srq *"?
In short how do one gets the qp_context/srq_context?

S.P.

--
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	[flat|nested] 5+ messages in thread
* RE: XRC and ib_poll_cq
@ 2013-04-02 20:02 Shlomo Pongratz
       [not found] ` <515B393F.2080405-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Shlomo Pongratz @ 2013-04-02 20:02 UTC (permalink / raw)
  To: Hefty, Sean
  Cc: Or Gerlitz, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

Hi Sean,

Thanks, it seems that I asked the question in a wrong way.
The context is what I need eventually but in order to find it I first 
need to recover the QP or the XRC SRQ.
Per core there may be several QP and SRQ using the same CQ.
When doing ib_poll_cq on the CQ the WQE in hand has only an ib_qp pointer.

S.P.

--
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	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-04-03  6:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-02 16:45 XRC and ib_poll_cq Shlomo Pongratz
     [not found] ` <515B0B35.3090401-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2013-04-02 19:16   ` Hefty, Sean
  -- strict thread matches above, loose matches on Subject: below --
2013-04-02 20:02 Shlomo Pongratz
     [not found] ` <515B393F.2080405-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2013-04-03  0:35   ` Hefty, Sean
     [not found]     ` <1828884A29C6694DAF28B7E6B8A823736F36A119-P5GAC/sN6hmkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2013-04-03  6:26       ` Shlomo Pongratz

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