rdma_resolve_route

Resolves the route information 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 in order to establish a connection. The destination address must have already been resolved by calling the rdma_resolve_addr subroutine.

Note: The rdma_resolve_route routine is called on the client side of a connection, after calling the rdma_resolve_addr routine, but before calling the rdma_connect routine.

Parameters

id Specifies the RDMA identifier.
timeout_ms Specifies the time of resolution.

Return Values

The rdma_resolve_route function returns the following values:
0 On success.
-1 Error, see errno.
-EINVAL If the id parameter is NULL.
-ENODATA The write operation on id->channel->fd failed.
[ Feedback ]