8–iWARP Configuration
Configuring iWARP on Linux
172
AH0054602-00 J
2.
Use the following command syntax to change the RDMA protocol by loading
the
qed
driver with a port interface PCI ID (
xx:xx.x
) and an RDMA
protocol value (
p
).
#
modprobe -v qed rdma_protocol_map=<xx:xx.x-p>
The RDMA protocol (
p
) values are as follows:
0
—Accept the default (RoCE)
1
—No RDMA
2
—RoCE
3
—iWARP
For example, to change the interface on the port given by 04:00.0 from
RoCE to iWARP, issue the following command:
#
modprobe -v qed rdma_protocol_map=04:00.0-3
3.
Load the RDMA driver by issuing the following command:
#
modprobe -v qedr
The following example shows the command entries to change the RDMA protocol
to iWARP on multiple NPAR interfaces:
#
modprobe qed rdma_protocol_map=04:00.1-3,04:00.3-3,04:00.5-3,
04:00.7-3,04:01.1-3,04:01.3-3,04:01.5-3,04:01.7-3
#
modprobe -v qedr
#
ibv_devinfo |grep iWARP
transport: iWARP (1)
transport: iWARP (1)
transport: iWARP (1)
transport: iWARP (1)
transport: iWARP (1)
transport: iWARP (1)
transport: iWARP (1)
transport: iWARP (1)
Detecting the Device
To detect the device:
1.
To verify whether RDMA devices are detected, view the
dmesg
logs:
#
dmesg |grep qedr
[10500.191047] qedr 0000:04:00.0: registered qedr0
[10500.221726] qedr 0000:04:00.1: registered qedr1