8–iWARP Configuration
Configuring iWARP on Linux
173
BC0154501-00 P
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
2.
Issue the
ibv_devinfo
command, and then verify the transport type.
If the command is successful, each PCI function will show a separate
hca_id
. For example (if checking the second port of the above dual-port
adapter):
[root@localhost ~]#
ibv_devinfo -d qedr1
hca_id: qedr1
transport: iWARP (1)
fw_ver: 8.14.7.0
node_guid: 020e:1eff:fec4:c06e
sys_image_guid: 020e:1eff:fec4:c06e
vendor_id: 0x1077