Intel® Ethernet 800 Series Linux Flow Control

Configuration Guide for RDMA Use Cases

ID 635330
Date 07/13/2023
Version 1.3
Document Table of Contents

Run Applications with the Right Priority

Set the ToS value in the application to steer it to the right traffic class.

Note:Command line options differ based on application.

Alternatively, for RoCEv2, you can set ToS for all traffic using the default_​roce_​tos parameter in configfs.

Following are some examples for setting ToS=24 (corresponding to prio 4):

LAN applications:

# ping -Q 24 # iperf3 -S 24 # netperf -Y 24

RDMA applications:

# ucmatose -t 24 # ib_write_bw -t 24

Set ToS for all RoCEv2 traffic: (device irdma0, port 1):

# mkdir /sys/kernel/config/rdma_cm/irdma0 # echo 24 > /sys/kernel/config/rdma_cm/irdma0/ports/1/default_roce_tosNote:default_​roce_​tos in the case of DSCP is an 8-bit value derived from 6-bit DSCP value left-shifted by 2-bits. Hence default_​roce_​tos is 4 x DSCP value.

For example, a DSCP value of 24 (011 000) left-shifted by 2 bits gives an 8-bit ToS value of 96 (011 000 00) with a priority value of 3.