acm_log(0, "ERROR - %s is not IB GID\n", gid);
continue;
}
- if (inet_pton(AF_INET, addr, &ip_addr) > 0)
+ if (inet_pton(AF_INET, addr, &ip_addr) > 0) {
addr_type = ACM_ADDRESS_IP;
- else if (inet_pton(AF_INET6, addr, &ip_addr) > 0)
+ } else if (inet_pton(AF_INET6, addr, &ip_addr) > 0) {
addr_type = ACM_ADDRESS_IP6;
- else {
+ } else {
acm_log(0, "ERROR - %s is not IP address\n", addr);
continue;
}
dest->state = ACM_READY;
acm_put_dest(gid_dest);
} else {
+ memcpy(dest->path.dgid, &ib_addr, 16);
+ //ibv_query_gid(ep->port->dev->verbs, ep->port->port_num,
+ // 0, &dest->path.sgid);
+ dest->path.slid = htons(ep->port->lid);
+ dest->path.reversible_numpath = IBV_PATH_RECORD_REVERSIBLE;
+ dest->path.pkey = htons(ep->pkey);
dest->state = ACM_ADDR_RESOLVED;
}
acm_log(0, "ERROR - failed to preload EP\n");
break;
default:
- return;
+ break;
}
switch (addr_preload) {