7–RoCE Configuration
Configuring RoCE on the Adapter for Linux
151
BC0154501-00 P
c.
Enable L3 routing on the switch.
Identifying the RoCE v2 GID Index or Address
To find RoCE v1- and RoCE v2-specific GIDs, use either sys or class parameters,
or run RoCE scripts from the 45000 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
Verifying the RoCE v1 or RoCE v2 GID Index and Address
from sys and class Parameters
Use one of the following options to verify the RoCE v1 or RoCE v2 GID Index and
address from the sys and class parameters:
Option 1:
#
cat /sys/class/infiniband/qedr0/ports/1/gid_attrs/types/0
IB/RoCE v1
#
cat /sys/class/infiniband/qedr0/ports/1/gid_attrs/types/1
RoCE v2
#
cat /sys/class/infiniband/qedr0/ports/1/gids/0
fe80:0000:0000:0000:020e:1eff:fec4:1b20
#
cat /sys/class/infiniband/qedr0/ports/1/gids/1
fe80:0000:0000:0000:020e:1eff:fec4:1b20
NOTE
You can configure RoCE v1 and RoCE 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 RoCE v2.