6–Configuring RoCE
Configuring RoCE on the Adapter for Linux
5.
Configure the IP address and enable the port using a configuration method,
such as ifconfig:
# ifconfig ethX 192.168.10.10/24 up
6.
Type the ibv_devinfo command. For each PCI function, you should see a
separate hca_id, as shown in the following example:
root@captain:~# ibv_devinfo
hca_id: qedr0
7.
Verify the L2 and RoCE connectivity between all servers: one server acts as
a server, another acts as a client.
transport:
fw_ver:
node_guid:
sys_image_guid:
vendor_id:
vendor_part_id:
hw_ver:
phys_port_cnt:
port:
Verify the L2 connection using a simple ping command.
Verify the RoCE connection by performing an RDMA ping:
On the server, type the following command:
ibv_rc_pingpong -d <ib-dev> -g 0
On the client, type the following command:
ibv_rc_pingpong -d <ib-dev> -g 0 <server L2 IP address>
1
state:
max_mtu:
active_mtu:
sm_lid:
port_lid:
port_lmc:
link_layer:
59
InfiniBand (0)
8.3.9.0
020e:1eff:fe50:c7c0
020e:1eff:fe50:c7c0
0x1077
5684
0x0
1
PORT_ACTIVE (1)
4096 (5)
1024 (3)
0
0
0x00
Ethernet
BC0154503-00 B