[openib-general] dapls_ib_connect comment
Hal Rosenstock
halr at voltaire.com
Mon Sep 12 07:25:27 PDT 2005
Hi Arlin,
In userspace/dapl/dapl/openib/dapl_ib_cm.c::dapls_ib_connect:
status = ib_at_route_by_ip(
((struct sockaddr_in *)&conn->r_addr)->sin_addr.s_addr,
((struct sockaddr_in *)&conn->hca->hca_address)->sin_addr.s_addr,
0, 0, &conn->dapl_rt, &conn->dapl_comp, &conn->dapl_comp.req_id);
dapl_dbg_log(DAPL_DBG_TYPE_CM, " connect: at_route ret=%d,%s req_id %d GID %016llx %016llx\n",
status, strerror(errno), conn->dapl_comp.req_id,
(unsigned long long)cpu_to_be64(conn->dapl_rt.dgid.global.subnet_prefix),
(unsigned long long)cpu_to_be64(conn->dapl_rt.dgid.global.interface_id) );
The GID is part of the route structure which is an output and not filled
in at completion of this call. I think that the destination and source
IP addresses would be more useful here.
-- Hal
More information about the general
mailing list