7–RoCE Configuration
Configuring RoCE on the Adapter for Linux
150
BC0154501-00 P
To display RoCE statistics, issue the following commands, where
X
is the
device number:
>
mount -t debugfs nodev /sys/kernel/debug
>
cat /sys/kernel/debug/qedr/qedr
X
/stats
vLAN Interfaces and GID Index Values
If you are using vLAN interfaces on both the server and the client, you must also
configure the same vLAN ID on the switch. If you are running traffic through a
switch, the InfiniBand applications must use the correct GID value, which is based
on the vLAN ID and vLAN IP address.
Based on the following results, the GID value (-x 4 / -x 5) should be used for any
perftest applications.
#
ibv_devinfo -d qedr0 -v|grep GID
GID[ 0]: fe80:0000:0000:0000:020e:1eff:fe50:c5b0
GID[ 1]: 0000:0000:0000:0000:0000:ffff:c0a8:0103
GID[ 2]: 2001:0db1:0000:0000:020e:1eff:fe50:c5b0
GID[ 3]: 2001:0db2:0000:0000:020e:1eff:fe50:c5b0
GID[ 4]: 0000:0000:0000:0000:0000:ffff:c0a8:0b03
IP address for vLAN interface
GID[ 5]: fe80:0000:0000:0000:020e:1e00:0350:c5b0
vLAN ID 3
RoCE v2 Configuration for Linux
To verify RoCE v2 functionality, you must use RoCE v2 supported kernels.
To configure RoCE v2 for Linux:
1.
Ensure that you are using one of the following supported kernels:
SLES12 SP2/SP3
SLES 15
RHEL 7.4 and 7.5
CentOS 7.4 and 7.5
2.
Configure RoCE v2 as follows:
a.
Identify the GID index for RoCE v2.
b.
Configure the routing address for the server and client.
NOTE
The default GID value is zero (0) for back-to-back or pause settings. For
server and switch configurations, you must identify the proper GID value. If
you are using a switch, refer to the corresponding switch configuration
documents for the correct settings.