[openib-general] [PATCH] cma: treat ANY address as loopback on connect
Michael S. Tsirkin
mst at mellanox.co.il
Mon Apr 24 05:04:24 PDT 2006
Treat wildcard (ANY) addresses as loopback on connect - the way
TCP sockets seem to do.
Signed-off-by: Michael S. Tsirkin <mst at mellanox.co.il>
Index: linux-2.6.16/drivers/infiniband/core/cma.c
===================================================================
--- linux-2.6.16.orig/drivers/infiniband/core/cma.c 2006-04-21 12:10:32.000000000 +0300
+++ linux-2.6.16/drivers/infiniband/core/cma.c 2006-04-24 16:49:22.000000000 +0300
@@ -1306,7 +1306,7 @@ int rdma_resolve_addr(struct rdma_cm_id
atomic_inc(&id_priv->refcount);
memcpy(&id->route.addr.dst_addr, dst_addr, ip_addr_size(dst_addr));
- if (cma_loopback_addr(dst_addr))
+ if (cma_any_addr(dst_addr))
ret = cma_resolve_loopback(id_priv);
else
ret = rdma_resolve_ip(&id->route.addr.src_addr, dst_addr,
--
MST
More information about the general
mailing list