ROCEv1 and RoCEv2 SRIOV support on AIX
Contributors: Vishwashreya Machineni & Swetha Venkannagari
RoCEv1 and RoCEv2 are supported on the SRIOV VF port. While creating the SRIOV VF make sure that you are creating a RoCE enabled port.
List of adapters that support RoCEv1 and 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
|
How to configure RoCEv1/RoCEv2 SRIOV on AIX?
From Command line interface of HMC:
1.Convert the adapter port from dedicated to SRIOV.
![](https://dw1.s81c.com//IMWUC/MessageImages/74e97edaeae3444b99ea76f179aa3eb5.png)
2. Modify the SRIOV port to an option that has non-zero RoCE ports from the Maximum SR-IOV Logical Ports option.
Here the max_logical_ports_option can be 0 or 1 or 2. In order to enable RoCE on physical port, the max_logical_ports_option should be 2.
![](https://dw1.s81c.com//IMWUC/MessageImages/3a5a6925a6fe441fadef4b2165f8ddbe.png)
3. Create a SRIOV RoCE VF
![](https://dw1.s81c.com//IMWUC/MessageImages/331b2afcd01e48599335caf828878a19.png)
The following step is on lpar:
4. Once the Logical port (VF) is created, follow the same steps for RoCEv1 and RoCEv2 configuration.
5. To validate that VF supports RDMA on ROCE VF port check in the entstat by executing the below command.
![](https://dw1.s81c.com//IMWUC/MessageImages/cf39cd4d5fb3405f92c4e6fe861a04cc.png)
From HMC GUI console:
The same steps can be done via HMC GUI console.
1.Open HMC GUI and choose the selected adapter port from the respective CEC.
![](https://dw1.s81c.com//IMWUC/MessageImages/935bb989e2344a309bccec34dab4336c.png)
2. Convert the dedicated mode to SRIOV mode (if the adapter is in dedicated mode).
![](https://dw1.s81c.com//IMWUC/MessageImages/9b728ed35ebf405cbdde463151eaf61f.png)
After converting the mode, it shows like below:
![](https://dw1.s81c.com//IMWUC/MessageImages/05c78c16578946ef9d85bc8374063809.png)
3. In order to enable the RoCE on the physical port, select non-zero RoCE option from the Maximum SR-IOV Logical Ports option. The non-zero RoCE option may differ for different adapters.
![](https://dw1.s81c.com//IMWUC/MessageImages/52bace88aa254df2bec90c21d93820bd.png)
3. Once you select the option it shows as below
![](https://dw1.s81c.com//IMWUC/MessageImages/9534901561b24274ae8834049a611a7a.png)
4. Then create a SRIOV RoCE logical port from the lpar partition-Hardware virtualised I/O.
Select the RoCE port type and the respective adapter VF on which the logical port needs to be created.
![](https://dw1.s81c.com//IMWUC/MessageImages/4746ecfb679c41699d51d8c6fa5ae270.png)
5. Once the logical Port is created on the lpar, use cfgmgr to configure the logical VF port and follow the same steps to check RoCEv1 and RoCEv2 functionality.
To configure the RoCE on AIX logical partition, follow the below blogs:
For RoCEv1 - https://community.ibm.com/community/user/power/blogs/vishwashreya-machineni/2024/04/15/rocev1-configuration-on-aix
For RoCEv2 - https://community.ibm.com/community/user/power/blogs/vishwashreya-machineni/2024/04/30/rocev2-enablement-on-aix