Skip to contentSkip to conversation

XRC and ib_poll_cq

DISCUSSION Shlomo Pongratz 2 participants 2 messages Apr 2, 2013 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 515B0B35.3090401-VPRAkNaXOzVWk0Htik3J/[email protected]

#2 lore raw
Quoted 5 lines

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?

qp_context is accessible directly from struct ib_qp. srq_context is available from struct ib_srq, the latter of which is also in struct ib_qp. --
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html