1RDMA_RESOLVE_ADDR(3) Librdmacm Programmer's Manual RDMA_RESOLVE_ADDR(3)
2
3
4
6 rdma_resolve_addr - Resolve destination and optional source addresses.
7
9 #include <rdma/rdma_cma.h>
10
11 int rdma_resolve_addr (struct rdma_cm_id *id, struct sockaddr
12 *src_addr, struct sockaddr *dst_addr, int timeout_ms);
13
15 id RDMA identifier.
16
17 src_addr Source address information. This parameter may be NULL.
18
19 dst_addr Destination address information.
20
21 timeout_ms Time to wait for resolution to complete.
22
24 Resolve destination and optional source addresses from IP addresses to
25 an RDMA address. If successful, the specified rdma_cm_id will be bound
26 to a local device.
27
29 Returns 0 on success, or -1 on error. If an error occurs, errno will
30 be set to indicate the failure reason.
31
33 This call is used to map a given destination IP address to a usable
34 RDMA address. The IP to RDMA address mapping is done using the local
35 routing tables, or via ARP. If a source address is given, the
36 rdma_cm_id is bound to that address, the same as if rdma_bind_addr were
37 called. If no source address is given, and the rdma_cm_id has not yet
38 been bound to a device, then the rdma_cm_id will be bound to a source
39 address based on the local routing tables. After this call, the
40 rdma_cm_id will be bound to an RDMA device. This call is typically
41 made from the active side of a connection before calling
42 rdma_resolve_route and rdma_connect.
43
45 This call maps the destination and, if given, source IP addresses to
46 GIDs. In order to perform the mapping, IPoIB must be running on both
47 the local and remote nodes.
48
50 rdma_create_id(3), rdma_resolve_route(3), rdma_connect(3), rdma_cre‐
51 ate_qp(3), rdma_get_cm_event(3), rdma_bind_addr(3),
52 rdma_get_src_port(3), rdma_get_dst_port(3), rdma_get_local_addr(3),
53 rdma_get_peer_addr(3)
54
55
56
57librdmacm 2007-10-31 RDMA_RESOLVE_ADDR(3)