Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
13.3. Configuring Soft-RoCE
RoCE can be implemented both in the hardware and in the software. Soft-RoCE is the software implementation of the RDMA transport.
Prerequisites
Since Red Hat Enterprise Linux 7.4, the Soft-RoCE driver is already merged into the kernel. The user-space driver also is merged into the rdma-core package. Soft-RoCE is also known as RXE. To start, stop and configure RXE, use the
rxe_cfg
script. To view options for rxe_cfg
, enter rxe_cfg help
.
Procedure 13.2. Configuring Soft-RoCE
- As the
root
user, enter the following command to display the current configuration status of RXE:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - To load the RXE kernel module and start RXE, enter as
root
:Optionally, to verify that the RXE kernel module is loaded, enter:rxe_cfg start
~]# rxe_cfg start Name Link Driver Speed NMTU IPv4_addr RDEV RMTU igb_1 yes igb mlx4_1 no mlx4_en mlx4_2 no mlx4_en
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Before adding a new RXE device over an Ethernet interface, the corresponding interface should be opened and has a valid IP address assigned. To add a new RXE device, for example igb_1:
rxe_cfg add igb_1
~]# rxe_cfg add igb_1rxe_cfg add igb_1
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The rxe0 in the RDEV column indicates that rxe is enabled for the igb_1 device.rxe_cfg status
~]# rxe_cfg status Name Link Driver Speed NMTU IPv4_addr RDEV RMTU igb_1 yes igb rxe0 1024 (3) mlx4_1 no mlx4_en mlx4_2 no mlx4_en
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - To verify the status of an RXE device, use the
ibv_devices
command:Alternatively, enter theibv_devices
~]# ibv_devices device node GUID ------ ---------------- mlx4_0 0002c90300b3cff0 rxe0 a2369ffffe018294
Copy to Clipboard Copied! Toggle word wrap Toggle overflow ibstat
for a detailed status:Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Removing an RXE device
If you want to remove an RXE device, enter:
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
rxe_cfg remove igb_1
~]# rxe_cfg remove igb_1rxe_cfg remove igb_1
Verifying Connectivity of an RXE device
The following examples show how to verify connectivity of an RXE device on the server and client side.
Example 13.1. Verifying Connectivity of an RXE device on the Server Side
Example 13.2. Verifying Connectivity of an RXE device on the Client Side