7–RoCE Configuration
Configuring RoCE on the Adapter for Linux
147
BC0154501-00 P
9.
Load the RDMA modules by issuing the following commands. You must
perform this step whenever you reboot the system.
#
modprobe rdma_cm
#
modprobe ib_uverbs
#
modprobe rdma_ucm
#
modprobe ib_ucm
#
modprobe ib_umad
10. To list RoCE devices, issue the following command:
#
ibv_devinfo
11.
Assign IP addresses to the Ethernet interfaces:
To assign the static IP address, edit the
/etc/network/interfaces
file with the following entries:
auto eth0
iface eth0 inet static
address 192.168.10.5
netmask 255.255.255.0
gateway 192.168.10.254
To assign the DHCP IP address, edit the
/etc/network/interfaces
file with the following entries:
auto eth0
iface eth0 inet dhcp
Verifying the RoCE Configuration on Linux
After installing OFED, installing the Linux driver, and loading the RoCE drivers,
verify that the RoCE devices were detected on all Linux operating systems.
To verify RoCE configuration on Linux:
1.
Stop firewall tables using
service/systemctl
commands.
2.
For RHEL only: If the RDMA service is installed (
yum install rdma
), verify
that the RDMA service has started.
NOTE
For RHEL 6.
x
and SLES 11 SP4, you must start RDMA service after
reboot. For RHEL 7.
x
and SLES 12 SP
x
and later, RDMA service
starts itself after reboot. For Ubuntu, there is no RDMA service, so the
user must load each RDMA module.