[ofa-general] CM ID

Roland Dreier rdreier at cisco.com
Tue Apr 22 10:23:38 PDT 2008


 > I have realised that the verbs of the rdma_cm_id are only valid after a 
 > call to rdma_resolve_addr().
 > 
 > How can I create a memory region before connecting to the remote host?
 > In order to create an ibv_mr, I need a protection domain (PD).
 > For creating a PD, I need an ibv_context which I get from cm_id->verbs but 
 > they are only valid after
 > resolving the address.
 > 
 > So what would be the correct way to call ibv_alloc_pd() and ibv_reg_mr() 
 > before resolving the address
 > which I might not yet know (especially on the server side).

It doesn't really make sense to use any verbs before you have resolved
the address, because you don't know which device will be used until the
address is used.

 - R.



More information about the general mailing list