Always query for address/port information after binding to an address.

Signed-off-by: Sean Hefty <[EMAIL PROTECTED]>

---

This patch is for review only at this point.  The behavior of the ABI
changed with the kernel patch, such that a newer library version may
not always work with an older kernel module.


Index: src/cma.c
===================================================================
--- src/cma.c   (revision 5693)
+++ src/cma.c   (working copy)
@@ -404,11 +404,9 @@ int rdma_bind_addr(struct rdma_cm_id *id
        if (ret != size)
                return (ret > 0) ? -ENODATA : ret;
 
-       if (((struct sockaddr_in *) addr)->sin_addr.s_addr != 0) {
-               ret = ucma_query_route(id);
-               if (ret)
-                       return ret;
-       }
+       ret = ucma_query_route(id);
+       if (ret)
+               return ret;
 
        memcpy(&id->route.addr.src_addr, addr, addrlen);
        return 0;

_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

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

Reply via email to