Resolves the destination and optional source addresses.
#include <rdma/rdma_cma.h> int rdma_resolve_addr(struct rdma_cm_id *id, struct sockaddr *src_addr, struct sockaddr *dst_addr, int timeout_ms);
The rdma_resolve_addr function resolves the destination and optional source addresses from IP address to an RDMA address. If successful, the specified rdma_cm_id is bound to a local device.
id | Specifies the RDMA identifier. |
src_addr | Specifies the source address information and this parameter might be NULL. |
dst_addr | Specifies the destination address information. |
timeout_ms | Specifies the time of resolution. |
0 | On success. |
-1 | Error, see errno. |
-EINVAL | If the id parameter is NULL or the family is a Bad Protocol family. |
-ENODATA | The write operation on id->channel->fd failed. |