7–RoCE Configuration
Configuring DCQCN
164
AH0054602-00 J
MAC Statistics
To view MAC statistics, including per-priority PFC statistics, issue the
phy_mac_stats
command. For example, to view statistics on port 1 issue the
following command:
./
debugfs.sh -n eth0 -d phy_mac_stat -P 1
Script Example
The following example can be used as a script:
# probe the driver with both reaction point and notification point enabled
# with cnp dscp set to 10 and cnp vlan priority set to 6
modprobe qed dcqcn_enable=1 dcqcn_notification_point=1 dcqcn_reaction_point=1
dcqcn_cnp_dscp=10 dcqcn_cnp_vlan_priority=6
modprobe qede
# dscp-pfc configuration (associating dscp values to priorities)
# This example is using two DCBX traffic class priorities to better demonstrate
DCQCN in operation
debugfs.sh -n ens6f0 -t dscp_pfc_enable 1
debugfs.sh -n ens6f0 -t dscp_pfc_set 20 5
debugfs.sh -n ens6f0 -t dscp_pfc_set 22 6
# static DCB configurations. 0x10 is static mode. Mark priorities 5 and 6 as
# subject to pfc
debugfs.sh -n ens6f0 -t dcbx_set_mode 0x10
debugfs.sh -n ens6f0 -t dcbx_set_pfc 5 1
debugfs.sh -n ens6f0 -t dcbx_set_pfc 6 1
# set roce global overrides for qp params. enable exn and open QPs with dscp 20
debugfs.sh -n ens6f0 -t rdma_glob_ecn 1
debugfs.sh -n ens6f0 -t rdma_glob_dscp 20
# open some QPs (DSCP 20)
ib_write_bw -d qedr0 -q 16 -F -x 1 --run_infinitely
# change global dscp qp params
debugfs.sh -n ens6f0 -t rdma_glob_dscp 22
# open some more QPs (DSCP 22)
ib_write_bw -d qedr0 -q 16 -F -x 1 -p 8000 --run_infinitely
dcqcn_k_us
Alpha update interval.
dcqcn_timeout_us
DCQCN timeout.
Table 7-4. DCQCN Algorithm Parameters (Continued)
Parameter
Description and Values