Hello,

I have a short user application question for the experts: I would like 2 
QPs to be able
to access a single shared MR. For that I need the QPs to be in the same 
PD.
What is the right way to do that with OFED 1.4?

MPA initiator:
**************
----
QP1:
----
1.        rdma_create_event_channel()
2.        rdma_create_id(event_channel, cm_id_1, ...)
3.        rdma_resolve_addr(cm_id_1, ...)
4.        rdma_resolve_route(cm_id_1, ...)
5. pd_1 = ibv_alloc_pd(cm_id_1->verbs)
6.        ibv_create_comp_channel(cm_id_1->verbs)
7.        ibv_create_cq(cm_id_1->verbs, ..., comp_channel, ...)
8.        rdma_create_qp(cm_id_1, pd_1, init_attrs)

----
QP2: (Variant A)
----
2.        rdma_create_id(event_channel, cm_id_2, ...)
3.        rdma_resolve_addr(cm_id_2, ...)
4.        rdma_resolve_route(cm_id_2, ...)

6.        ibv_create_comp_channel(cm_id_2->verbs)
7.        ibv_create_cq(cm_id_2->verbs, ..., comp_channel, ...)
8.        rdma_create_qp(cm_id_2, pd_1, init_attrs)

----
QP2: (Variant B)
----
6.        ibv_create_comp_channel(cm_id_1->verbs)
7.        ibv_create_cq(cm_id_1->verbs, ..., comp_channel, ...)
8.        rdma_create_qp(cm_id_1, pd_1, init_attrs)


The short question is: Do I need to create a new CM ID (including 
addr/route resolving)
in order to be able to create a new QP with its own completion channel and 
CQ but with
a PD which is shared with QP1

        or

do I reuse the CM ID, create a new completion channel / CQ on it and 
create a new QP
based on the old CM ID and the PD which is shared with QP1?


Many thanks for your advice,
 Philip
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to