6–RoCE Configuration
Configuring RoCE on the Adapter for Linux
70
AH0054601-00 B
2.
If the file
/etc/udev/rules.d/40-rdma.rules
does not exist, create it
with the following content:
KERNEL=="umad*", NAME="infiniband/%k"
KERNEL=="issm*", NAME="infiniband/%k"
KERNEL=="ucm*", NAME="infiniband/%k", MODE="0666"
KERNEL=="uverbs*", NAME="infiniband/%k", MODE="0666"
KERNEL=="ucma", NAME="infiniband/%k", MODE="0666"
KERNEL=="rdma_cm", NAME="infiniband/%k", MODE="0666"
3.
Edit the
/etc/security/limits.conf
file to increase the size of memory,
which can be locked by a non-root user. Add the following lines, and then log
out:
* soft memlock unlimited
* hard memlock unlimited
root soft memlock unlimited
root hard memlock unlimited
4.
Log into the system again, or verify after reboot. Then issue the following
command:
#
ulimit -l
You should get the output as
unlimited
.
5.
Reboot the system.
6.
To allow the device to be recognized as an InfiniBand device that can be
used by OFED, install the FastLinQ package by issuing the following
commands:
#
cd fastlinq-
X.X.X.X
#
make clean
#
make install
7.
Install the libqedr libraries to work with RDMA user space applications using
one of the following command options:
Option 1:
#
cd fastlinq-X.X.X.X
NOTE
You might see a few packages already installed because of a
dependency, but make sure all of the preceding packages are installed
(
dpkg --get-selections | grep <pkg_name>
), and follow the
package installation method prescribed by Ubuntu.