rdma_resolve_route
Resolves the route information that is required to establish a connection.
Syntax
#include <rdma/rdma_cma.h>
int rdma_resolve_route(struct rdma_cm_id *id, int timeout_ms);
Description
The rdma_resolve_route function resolves an RDMA route to the destination address to establish a connection. The destination address must be resolved by running the rdma_resolve_addr subroutine.
Note: The rdma_resolve_route operation is called on the
client side of a connection after running the rdma_resolve_addr operation,
but before the rdma_connect operation.
Parameters
Item | Description |
---|---|
id | Specifies the RDMA identifier. |
timeout_ms | Specifies the time of resolution. |
Return Values
The rdma_resolve_route function returns 0 on success, or -1 on error. If an error occurs, errno indicates the reason for failure.