]> git.openfabrics.org - ~shefty/librdmacm.git/commit
librdmacm: expand support for hints to rdma_getaddrinfo
authorSean Hefty <sean.hefty@intel.com>
Wed, 18 Aug 2010 19:39:58 +0000 (12:39 -0700)
committerSean Hefty <sean.hefty@intel.com>
Thu, 19 Aug 2010 22:01:46 +0000 (15:01 -0700)
commitfb8c75f684eade649260ddf53a5be72c0f2e3573
treeb9357c7b93b18220738dd5e5cc8882afb923d391
parent125a4b39d3f788a544568a0971819749daa4e455
librdmacm: expand support for hints to rdma_getaddrinfo

If a user passes in hints into rdma_getaddrinfo, they can
specify resolved source and destination addresses.  In this
case, there's no need for the user to specify the node or
service parameters.  This differs from getaddrinfo, which
indicates that either node or service must be provided, but
is useful if rdma_getaddrinfo is being used to obtain
routing data.

Supporting this option allows the librdmacm to call
rdma_getaddrinfo internally from rdma_resolve_route when IB ACM
is enabled.

In addition to specifying the source and destination addresses
as part of the hints, a user could instead specify partial
routing data and rdma_getaddrinfo can resolve the full route.

This helps to support MPI applications that exchange endpoint
data, such as LIDs, out of band, but require SL data from the
SA to avoid potential deadlock conditions.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
src/acm.c
src/addrinfo.c
src/cma.c
src/cma.h