]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
librdmacm: Re-enable ibacm support
authorSean Hefty <sean.hefty@intel.com>
Fri, 17 Aug 2012 23:41:04 +0000 (16:41 -0700)
committerSean Hefty <sean.hefty@intel.com>
Fri, 17 Aug 2012 23:41:04 +0000 (16:41 -0700)
Commit 272c3cc024d0e5854cbafa6c2f1e8560398a68d7, "Delay ACM
connection until resolving an address", removed the call to
ucma_ib_init without adding it back in the correct location.
As a result, the librdmacm no longer uses ibacm.  Fix this
by adding the initialization call when resolving an address.

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

index 5bdeb88dac4a38bb30733209328331a31fb71e32..458e23dec346aadf0e2985d47220b473c169c094 100755 (executable)
--- a/src/acm.c
+++ b/src/acm.c
@@ -326,6 +326,7 @@ void ucma_ib_resolve(struct rdma_addrinfo **rai, struct rdma_addrinfo *hints)
        struct acm_ep_addr_data *data;
        int ret;
 
+       ucma_ib_init();
        if (sock < 0)
                return;