Hello, does it possible to use rdma_getaddrinfo and specify in node port GUID?
I'm try with fe80:0000:0000:0000:0002:c903:00ef:6651 this simple test:
#include <stdlib.h>
#include <stdio.h>
#include <rdma/rdma_cma.h>
#include <infiniband/ib.h>
int main(int argc, char **argv) {
struct rdma_addrinfo *hints, *info;
int ret = -1;
hints = malloc(sizeof(hints));
memset(hints, '\0', sizeof(hints));
hints->ai_flags = RAI_NUMERICHOST;
hints->ai_family = AF_IB;
// hints->ai_port_space = RDMA_PS_IB;
ret = rdma_getaddrinfo(argv[1], NULL, hints, &info);
if (ret < 0) {
fprintf(stderr, "%d rdma_getaddrinfo\n", ret);
return ret;
}
if (info == NULL) {
fprintf(stderr, "%d rdma_getaddrinfo null\n", ret);
return -1;
}
return 0;
}
But getting INET6 address
Also noted that i don't enable IPoIB, why address not IF_IB family ?
--
Vasiliy Tolstov,
e-mail: [email protected]
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html