Debian Codegraph @

Documentation/librdmacm.md

raw
1 # Device files
2
3 The userspace CMA uses a single device file regardless of the number
4 of adapters or ports present.
5
6 To create the appropriate character device file automatically with
7 udev, a rule like
8
9 KERNEL="rdma_cm", NAME="infiniband/%k", MODE="0666"
10
11 can be used. This will create the device node named
12
13 /dev/infiniband/rdma_cm
14
15 or you can create it manually
16
17 mknod /dev/infiniband/rdma_cm c 231 255
18
19
20 # Common issues
21
22 Using multiple interfaces
23 : The librdmacm does support multiple interfaces. To make use
24 of multiple interfaces, however, you need to instruct linux
25 to only send ARP replies on the interface targeted in the ARP
26 request. This can be done using a command similar to the
27 following:
28
29 sysctl -w net.ipv4.conf.all.arp_ignore=2
30
31 Without this change, it's possible for linux to respond to ARP
32 requests on a different interface (IP address) than the IP
33 address carried in the ARP request. This causes the RDMA stack
34 to incorrectly map the remote IP address to the wrong RDMA
35 device.
36
37 Using loopback
38 : The librdmacm relies on ARP to resolve IP address to RDMA
39 addresses. To support loopback connections between different
40 ports on the same system, ARP must be enabled for local
41 resolution:
42
43 sysctl net.ipv4.conf.all.accept_local=1
44
45 Without this setting, loopback connections may timeout
46 during address resolution.