6–RoCE Configuration
Configuring RoCE on the Adapter for Linux
61
AH0054602-00 A
RoCE v2 Configuring 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:
SLES 12 SP2 GA
RHEL 7.3 GA
2.
Configure RoCEv2 as follows:
a.
Identify the GID index for RoCE v2.
b.
Configure the routing address for the server and client.
c.
Enable L3 routing on the switch.
Identifying RoCE v2 GID Index or Address
To find RoCE v1 and v2 specific GIDs, use either sys or class parameters, or run
RoCE scripts from the 41
xxx
FastLinQ source package. To check the default
RoCE GID Index
and address, issue the
ibv_devinfo
command and compare
it with the sys or class parameters. For example:
#
ibv_devinfo -d qedr0 -v|grep GID
GID[ 0]: fe80:0000:0000:0000:020e:1eff:fec4:1b20
GID[ 1]: fe80:0000:0000:0000:020e:1eff:fec4:1b20
GID[ 2]: 0000:0000:0000:0000:0000:ffff:1e01:010a
GID[ 3]: 0000:0000:0000:0000:0000:ffff:1e01:010a
GID[ 4]: 3ffe:ffff:0000:0f21:0000:0000:0000:0004
GID[ 5]: 3ffe:ffff:0000:0f21:0000:0000:0000:0004
GID[ 6]: 0000:0000:0000:0000:0000:ffff:c0a8:6403
GID[ 7]: 0000:0000:0000:0000:0000:ffff:c0a8:6403
NOTE
You can configure RoCE v1 and v2 by using RoCE v2 supported
kernels. These kernels allow you to run RoCE traffic over the same
subnet, as well as over different subnets such as RoCE v2 and any
routable environment. Only a few settings are required for RoCE v2,
and all other switch and adapter settings are common for RoCE v1 and
v2.