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 This call is used to map a given destination IP address to a usable
30 RDMA address. The IP to RDMA address mapping is done using the local
31 routing tables, or via ARP. If a source address is given, the
32 rdma_cm_id is bound to that address, the same as if rdma_bind_addr were
33 called. If no source address is given, and the rdma_cm_id has not yet
34 been bound to a device, then the rdma_cm_id will be bound to a source
35 address based on the local routing tables. After this call, the
36 rdma_cm_id will be bound to an RDMA device. This call is typically
37 made from the active side of a connection before calling
38 rdma_resolve_route and rdma_connect.
39
41 This call maps the destination and, if given, source IP addresses to
42 GIDs. In order to perform the mapping, IPoIB must be running on both
43 the local and remote nodes.
44
46 rdma_create_id(3), rdma_resolve_route(3), rdma_connect(3), rdma_cre‐
47 ate_qp(3), rdma_get_cm_event(3), rdma_bind_addr(3),
48 rdma_get_src_port(3), rdma_get_dst_port(3), rdma_get_local_addr(3),
49 rdma_get_peer_addr(3)
50
51
52
53librdmacm 2007-10-31 RDMA_RESOLVE_ADDR(3)