[openib-general] RDMA connection and address translation API

Sean Hefty sean.hefty at intel.com
Wed Aug 24 18:28:44 PDT 2005


>With this in mind, I believe that the connection API needs to be
>something more like the following:
>
>    rdma_resolve_address():
>        inputs: dest IP address, qos, npaths,
>            done callback, opaque context
>	done callback params: status, local RDMA device,
>            RDMA transport address, context
...
>    rdma_connect():
>        inputs: local QP, RDMA transport address, destination service,
>            private data, timeout, event callback, opaque context

Have we agreed that this is the functionality that we should be aiming towards?

>    rdma_resolve_address(...);
>    /* wait for resolution */
>    ib_create_qp(...) /* use device pointer we got from rdma_resolve_address()
>*/

We need to insert in here: 

ib_modify_qp(...);  /* somehow uses address resolution... */
ib_post_recvs(...);

>    rdma_connect(...); /* pass transport address we got from
>rdma_resolve_address() */
>    /* wait for connection to finish... */

Another possibility could be to add a list of receives to rdma_connect().

- Sean





More information about the general mailing list