You have read the symptoms. Now you look at the configuration to understand why.
nv show interface swp1 qos pfc — reading PFC state
PFC (Priority Flow Control) is the mechanism. Two views answer the two questions: is PFC active on this port, and which priority does it protect?
cumulus@leaf-rail0:~$ nv show interface swp1 qos pfc
operational applied
-- ----------- -------
rx enable enable
tx enable enable
cumulus@leaf-rail0:~$ nv show qos pfc default-global
switch-priority 3
cable-length 100
Reading the output:
rx and tx enable — The port both honours from the and sends them. disable in the operational column means PFC is not running on this port, whatever the configuration file says.
switch-priority 3 — PFC protects switch priority 3. With the profile, the switch trusts , maps DSCP 24–31 (including the 's default DSCP 26) to switch priority 3, and protects that priority. What matters is that the PFC priority here matches the priority your RoCE traffic actually lands on. If the traffic lands on priority 3 but PFC protects priority 0, you get no protection.
cable-length — The switch sizes the PFC from port speed and cable length. A wrong value either wastes buffer or too little headroom to absorb the packets in flight after a pause is sent.
When PFC is missing: rx and tx show disable, and nv show qos roce shows the RoCE profile is not applied. This is the fault state in Lab 1. Disabled PFC on a RoCEv2 port means congestion causes drops. Training jobs see retransmissions, logs timeouts, stalls.
The PFC priority mismatch trap:
One of the most common PFC misconfigurations is enabling PFC on the wrong priority. If your RoCEv2 traffic is marked DSCP 26 (landing on priority 3) but PFC is configured for priority 0, PFC provides no protection to your traffic. This does not show up as "PFC disabled" — PFC reports as enabled. Verify the whole chain on both ends: the NIC's trust mode and PFC priority (mlnx_qos -i eth0), the switch's DSCP map (nv show qos mapping default-global dscp), and the switch's PFC priority. They must agree. This is Lab 8.
The watchdog: nv show qos pfc-watchdog shows whether the PFC watchdog runs on each lossless port. If a queue stays paused for too long, the watchdog breaks the deadlock by dropping that queue's traffic for a while. Always keep it enabled. It is your last line of defence against permanent (Chapter 5).
nv show qos congestion-control — reading ECN configuration
(Explicit Congestion Notification) lets the switch mark packets when a queue starts to build, so the sender's NIC can slow down before buffers fill.
cumulus@leaf-rail0:~$ nv show qos congestion-control default-global
traffic-class ECN RED Min Th Max Th Probability
------------- ------- ------- --------- ------- -----------
0 enable disable 146.48 KB 1.43 MB 100
3 enable disable 146.48 KB 1.43 MB 100
Reading the output:
traffic-class 3 ... ECN enable — ECN marking is on for the RoCE . Between Min Th and Max Th the switch marks a growing share of packets with CE; above Max Th it marks every packet.
Probability 100 — the share of packets marked at the maximum threshold.
RED disable — the switch marks instead of dropping. For RoCE you want marking, never early drop.
When ECN is disabled: traffic class 3 shows ECN disable. This is the fault state in Lab 2. Without ECN, the only congestion mechanism is PFC. Congestion builds until PFC pauses the sender. DCQCN — the NIC's rate control, which reacts to ECN marks — never runs, because nothing is marked.
Scheduling: nv show qos egress-scheduler default-global shows how the port shares bandwidth between traffic classes. The RoCE profile gives traffic class 6 (CNPs) strict priority, and traffic classes 3 (RoCE) and 0 (everything else) 50% each by DWRR. RoCE data is deliberately not strict priority: a strict class carrying line-rate RDMA would starve everything below it.
nv show qos roce — the RoCE summary
nv show qos roce gives you a consolidated view of the switch's RoCE configuration. It is the first command to check when validating a newly configured switch.
cumulus@leaf-rail0:~$ nv show qos roce
operational applied
------------------- ----------- --------
enable on on
mode lossless lossless
congestion-control
congestion-mode ECN ECN
enabled-tc 0,3 0,3
min-threshold 146.48 KB
max-threshold 1.43 MB
probability 100
lldp-app-tlv
priority 3
protocol-id 4791
pfc
pfc-priority 3
rx-enabled enabled
tx-enabled enabled
trust
trust-mode pcp,dscp
Read it top to bottom: the profile is on, it is lossless, ECN marks on traffic classes 0 and 3, PFC protects priority 3 in both directions, and the switch trusts DSCP. nv show interface swp1 qos roce status shows the same settings as actually programmed on one port.
The node side of the same summary. The switch is only half of it. On the node:
mlnx_qos -i eth0 # trust dscp; PFC enabled on priority 3 only
ip link show eth0 | grep mtu # mtu 9000
ibv_devinfo -d mlx5_0 | grep active_mtu # 4096: the RoCE path MTU
cat /sys/class/net/eth0/ecn/roce_rp/enable/3 # 1: DCQCN enabled on priority 3
An Ethernet MTU of 1500 does not fragment RDMA traffic — RoCE never fragments. It forces the RoCE path MTU down to 1024 bytes, so every transfer needs four times as many packets, each with its own headers and per-packet NIC work. Throughput drops sharply and nothing reports an error.