7–RoCE Configuration
Configuring DCQCN
165
BC0154501-00 P
Setting ECN on RDMA Traffic
Use the
rdma_glob_ecn
node to enable ECN for a specified RoCE priority. For
example, to enable ECN on RoCE traffic using priority 5, issue the following
command:
./debugfs.sh -n eth0 -t rdma_glob_ecn 1
This command is typically required when DCQCN is enabled.
Setting DSCP on RDMA Traffic
Use the
rdma_glob_dscp
node to control DSCP. For example, to set DSCP on
RoCE traffic using priority 5, issue the following command:
./debugfs.sh -n eth0 -t rdma_glob_dscp 6
This command is typically required when DCQCN is enabled.
Configuring DSCP-PFC
Use
dscp_pfc
nodes to configure the
dscp->priority
association for PFC.
You must enable the feature before you can add entries to the map. For example,
to map DSCP value 6 to priority 5, issue the following commands:
./debugfs.sh -n eth0 -t dscp_pfc_enable 1
./debugfs.sh -n eth0 -t dscp_pfc_set 6 5
Enabling DCQCN
To enable DCQCN for RoCE traffic, probe the qed driver with the
dcqcn_enable
module parameter. DCQCN requires enabled ECN indications
(see
“Setting ECN on RDMA Traffic” on page 165
Configuring CNP
Congestion notification packets (CNPs) can have a separate configuration of
vLAN priority and DSCP. Control these packets using the
dcqcn_cnp_dscp
and
dcqcn_cnp_vlan_priority
module parameters. For example:
modprobe qed dcqcn_cnp_dscp=10 dcqcn_cnp_vlan_priority=6