AIX

 View Only

ROCEv2 Enablement on AIX

By Vishwashreya Machineni posted Tue April 30, 2024 12:43 PM

  

ROCEv2 Enablement on AIX 

Contributors:  Vishwashreya Machineni, Swetha Venkannagari and Neelima Nandula

What is RoCEv2? 

A straightforward extension of the RoCE protocol enables traffic to operate in IP layer 3 environments.  This capability is obtained via a simple modification of the RoCE packet format. Instead of the GRH(Global Route Headers) used in RoCE, IP routable RoCE packets carry an IP header which allows traversal of IP L3 Routers and a UDP header (RoCEv2 only) that serves as a stateless encapsulation layer for the RDMA Transport Protocol Packets over IP. 

The ports of RoCEv2 adapters can be cabled via a router together by a switch. AIX OS supports both RoCEv1 & RoCEv2. RoCEv1 mode is default mode. 

List of adapters that support RoCEv2 

Adapter Device ID

Adapter Name

B315211014101407

CX7 - Narwhal - 200G

B315211014101207

CX7 - Shale - 25G/10G/1G

B3151F101410AA06

CX6 - Manatee - 25G/10G/1G

B3151D101410A606

CX6 - Cedar Lake - 100G

B315191014103506

CX5 - Haleakala - 100G

B31513101410F704

CX4 - Glacier Park - 100G

B315151014101E06

CX4 - Everglades 25G

B315151014101F06

CX4 - Everglades 10G

Prerequisites for RoCEv2 

The following are high-level function requirements for RoCEv2 support in OFED: 

• The user have the ability to select between two modes: RoCEv1(GRH legacy) and RoCEv2(UDP/IP encapsulation). 

• Only one mode can be active per AIX machine instance either RoCEv1 or RoCEv2 is active per instance. 

• The new OFED stack software is backward compatible with older Mellanox drivers. 

Support Matrix 

User RoCEv2 mode Selection: 

How to configure RoCEv2 on AIX? 

1.Set the RoCEv2 mode by using the command-  "no -r -o roce_v2_mode=1" and reboot the machine to take effect.

2.Check with “lsattr” what the current state of rdma for the port is. 

 

3.Enable the rdma attribute to “required” for the same port  

A black screen with white text

Description automatically generated  

4. Configure the IP on the port and check ibv_devices list where it lists the RoCE enabled port. 

 

A black background with a black square

Description automatically generated with medium confidence 

5.For RoCEv2, the adapters are connected to the same switch via router . Check with “ibv_dev_info” command  (for RoCEv2 only)

A black screen with white text

Description automatically generated

6.check the rping by running server & client as shown below. 

A black background with white letters

Description automatically generated 

A black background with white letters

Description automatically generated 

 

0 comments
32 views

Permalink