You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/cumulus-linux-517/Layer-1-and-Switch-Ports/Quality-of-Service/_index.md
+41-5Lines changed: 41 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -722,12 +722,10 @@ Cumulus Linux calculates the headroom size for lossless priority groups based on
722
722
723
723
To enable more accurate headroom calculations, providing for better buffer allocation and improved shared buffer utilization, you can configure the probability of small packets on ports applied with {{<linkurl="#priority-flow-control-(pfc)"text="priority flow control">}}. Based on the configured small packet probability, `switchd` calculates the headroom reservation required for the lossless priority group.
724
724
725
-
To configure the probability of small packets:
726
-
727
725
{{< tabs "TabID679 ">}}
728
726
{{< tab "NVUE Commands ">}}
729
727
730
-
Run the `nv set qos pfc <profile> small-packet-probability <percent>` command. To configure a profile for PFC, refer to {{<linkurl="#priority-flow-control-(pfc)"text="priority flow control">}}.
728
+
To configure the probability of small packets for PFC, run the `nv set qos pfc <profile> small-packet-probability <percent>` command. To configure a profile for PFC, refer to {{<linkurl="#priority-flow-control-(pfc)"text="priority flow control">}}.
731
729
732
730
The following command sets the small packet probability for all ports in the PFC `default-global` profile to 60 percent.
To configure the probability of small packets for link pause, run the `nv set qos link-pause <profile> small-packet-probability <percent>` command. To configure a profile for link pause, refer to {{<linkurl="#link-pause"text="Link Pause">}}.
738
+
739
+
The following command sets the small packet probability for all ports in the link pause `default-global` profile to 60 percent.
740
+
741
+
```
742
+
cumulus@switch:~$ nv set qos link-pause default-global small-packet-probability 60
743
+
cumulus@switch:~$ nv config apply
744
+
```
745
+
739
746
{{< /tab >}}
740
747
{{< tab "Linux Commands ">}}
741
748
742
-
Edit the `priority flow control` section of the `/etc/cumulus/datapath/qos/qos_features.conf` file.
749
+
To configure the probability of small packets for PFC,, edit the `priority flow control` section of the `/etc/cumulus/datapath/qos/qos_features.conf` file.
743
750
744
751
```
745
752
pfc.default-global.small_packet_probability = 60
746
753
```
747
754
755
+
To configure the probability of small packets for link pause, edit the `link-pause` section of the `/etc/cumulus/datapath/qos/qos_features.conf` file.
To show the PFC small packet probability setting for the default profile, run the `nv show qos pfc default-global` command. To show the PFC small packet probability setting for an interface, run the `nv show interface <interface-id> qos pfc` command.
764
+
To show the PFC small packet probability setting for a profile, run the `nv show qos pfc <profile-id>` command. To show the PFC small packet probability setting for an interface, run the `nv show interface <interface-id> qos pfc` command.
765
+
766
+
```
767
+
cumulus@switch:~$ nv show qos pfc default-global
768
+
operational applied pending
769
+
----------------- ----------- ------- -------
770
+
cable-length 100
771
+
small-packet-probability 60
772
+
tx enable
773
+
rx enable
774
+
[switch-priority] 3
775
+
```
776
+
777
+
To show the link pause small packet probability setting for a profile, run the `nv show qos link-pause <profile-id>` command. To show the link pause small packet probability setting for an interface, run the `nv show interface <interface-id> qos link-pause` command.
778
+
779
+
```
780
+
cumulus@switch:~$ nv show qos link-pause default-global
0 commit comments