From 0a65769fc5974441b7284c9323dadfad39fd4344 Mon Sep 17 00:00:00 2001 From: Sonic Build Admin Date: Sun, 10 May 2026 17:40:27 +0000 Subject: [PATCH] Update dynamic threshold for Q1/Q2/Q3 egress lossy profiles and for Backend types Why I did it Update the alpha values for Q1/Q2/Q3 egress profiles to provide more buffers for the traffic. Update the egress queue profiles for all ToR/Leaf switches Work item tracking Microsoft ADO (number only): 37712828 How I did it Updated the dynamic threshold values for Q1/Q2/Q3 lossy queues. How to verify it Generated the values after updating T0/T1 Ninja templates using 'config qos reload' Which release branch to backport (provide reason below if selected) [x] 202411 [x] 202505 [x] 202511 Signed-off-by: Sonic Build Admin --- .../buffers_defaults_t0.j2 | 16 ++++++++-------- .../buffers_defaults_t1.j2 | 16 ++++++++-------- .../buffers_defaults_t0.j2 | 16 ++++++++-------- .../buffers_defaults_t1.j2 | 16 ++++++++-------- 4 files changed, 32 insertions(+), 32 deletions(-) diff --git a/device/arista/x86_64-arista_7060x6_64pe_b/Arista-7060X6-64PE-B-C448O16/buffers_defaults_t0.j2 b/device/arista/x86_64-arista_7060x6_64pe_b/Arista-7060X6-64PE-B-C448O16/buffers_defaults_t0.j2 index 1013d7b29d..75c76d6cb1 100644 --- a/device/arista/x86_64-arista_7060x6_64pe_b/Arista-7060X6-64PE-B-C448O16/buffers_defaults_t0.j2 +++ b/device/arista/x86_64-arista_7060x6_64pe_b/Arista-7060X6-64PE-B-C448O16/buffers_defaults_t0.j2 @@ -35,17 +35,17 @@ "queue1_downlink_lossy_profile": { "pool": "egress_lossy_pool", "size": "1778", - "dynamic_th": "-7" + "dynamic_th": "3" }, "queue2_downlink_lossy_profile": { "pool": "egress_lossy_pool", "size": "1778", - "dynamic_th": "-7" + "dynamic_th": "3" }, "queue3_downlink_lossy_profile": { "pool": "egress_lossy_pool", "size": "1778", - "dynamic_th": "-7" + "dynamic_th": "3" }, "queue4_downlink_lossy_profile": { "pool": "egress_lossy_pool", @@ -70,17 +70,17 @@ "queue1_uplink_lossy_profile": { "pool": "egress_lossy_pool", "size": "1778", - "dynamic_th": "-7" + "dynamic_th": "3" }, "queue2_uplink_lossy_profile": { "pool": "egress_lossy_pool", "size": "1778", - "dynamic_th": "-7" + "dynamic_th": "3" }, "queue3_uplink_lossy_profile": { "pool": "egress_lossy_pool", "size": "1778", - "dynamic_th": "-7" + "dynamic_th": "3" }, "queue4_uplink_lossy_profile": { "pool": "egress_lossy_pool", @@ -108,7 +108,7 @@ {% if DEVICE_METADATA and DEVICE_METADATA['localhost'] - and DEVICE_METADATA['localhost'].type == "LeafRouter" + and DEVICE_METADATA['localhost'].type in ('LeafRouter', 'ToRRouter', 'BackEndLeafRouter', 'BackEndToRRouter') and DEVICE_NEIGHBOR and DEVICE_NEIGHBOR_METADATA %} {%- macro generate_queue_buffers(ports) %} @@ -117,7 +117,7 @@ {% if DEVICE_NEIGHBOR[port] and DEVICE_NEIGHBOR[port].name and DEVICE_NEIGHBOR_METADATA[DEVICE_NEIGHBOR[port].name] - and DEVICE_NEIGHBOR_METADATA[DEVICE_NEIGHBOR[port].name].type in ('LeafRouter', 'SpineRouter') %} + and DEVICE_NEIGHBOR_METADATA[DEVICE_NEIGHBOR[port].name].type in ('LeafRouter', 'SpineRouter', 'BackEndLeafRouter', 'BackEndSpineRouter') %} "{{ port }}|0": { "profile": "queue0_uplink_lossy_profile" }, diff --git a/device/arista/x86_64-arista_7060x6_64pe_b/Arista-7060X6-64PE-B-C448O16/buffers_defaults_t1.j2 b/device/arista/x86_64-arista_7060x6_64pe_b/Arista-7060X6-64PE-B-C448O16/buffers_defaults_t1.j2 index 1013d7b29d..75c76d6cb1 100644 --- a/device/arista/x86_64-arista_7060x6_64pe_b/Arista-7060X6-64PE-B-C448O16/buffers_defaults_t1.j2 +++ b/device/arista/x86_64-arista_7060x6_64pe_b/Arista-7060X6-64PE-B-C448O16/buffers_defaults_t1.j2 @@ -35,17 +35,17 @@ "queue1_downlink_lossy_profile": { "pool": "egress_lossy_pool", "size": "1778", - "dynamic_th": "-7" + "dynamic_th": "3" }, "queue2_downlink_lossy_profile": { "pool": "egress_lossy_pool", "size": "1778", - "dynamic_th": "-7" + "dynamic_th": "3" }, "queue3_downlink_lossy_profile": { "pool": "egress_lossy_pool", "size": "1778", - "dynamic_th": "-7" + "dynamic_th": "3" }, "queue4_downlink_lossy_profile": { "pool": "egress_lossy_pool", @@ -70,17 +70,17 @@ "queue1_uplink_lossy_profile": { "pool": "egress_lossy_pool", "size": "1778", - "dynamic_th": "-7" + "dynamic_th": "3" }, "queue2_uplink_lossy_profile": { "pool": "egress_lossy_pool", "size": "1778", - "dynamic_th": "-7" + "dynamic_th": "3" }, "queue3_uplink_lossy_profile": { "pool": "egress_lossy_pool", "size": "1778", - "dynamic_th": "-7" + "dynamic_th": "3" }, "queue4_uplink_lossy_profile": { "pool": "egress_lossy_pool", @@ -108,7 +108,7 @@ {% if DEVICE_METADATA and DEVICE_METADATA['localhost'] - and DEVICE_METADATA['localhost'].type == "LeafRouter" + and DEVICE_METADATA['localhost'].type in ('LeafRouter', 'ToRRouter', 'BackEndLeafRouter', 'BackEndToRRouter') and DEVICE_NEIGHBOR and DEVICE_NEIGHBOR_METADATA %} {%- macro generate_queue_buffers(ports) %} @@ -117,7 +117,7 @@ {% if DEVICE_NEIGHBOR[port] and DEVICE_NEIGHBOR[port].name and DEVICE_NEIGHBOR_METADATA[DEVICE_NEIGHBOR[port].name] - and DEVICE_NEIGHBOR_METADATA[DEVICE_NEIGHBOR[port].name].type in ('LeafRouter', 'SpineRouter') %} + and DEVICE_NEIGHBOR_METADATA[DEVICE_NEIGHBOR[port].name].type in ('LeafRouter', 'SpineRouter', 'BackEndLeafRouter', 'BackEndSpineRouter') %} "{{ port }}|0": { "profile": "queue0_uplink_lossy_profile" }, diff --git a/device/arista/x86_64-arista_7060x6_64pe_b/Arista-7060X6-64PE-B-C512S2/buffers_defaults_t0.j2 b/device/arista/x86_64-arista_7060x6_64pe_b/Arista-7060X6-64PE-B-C512S2/buffers_defaults_t0.j2 index 6d06e5afb6..36db144887 100644 --- a/device/arista/x86_64-arista_7060x6_64pe_b/Arista-7060X6-64PE-B-C512S2/buffers_defaults_t0.j2 +++ b/device/arista/x86_64-arista_7060x6_64pe_b/Arista-7060X6-64PE-B-C512S2/buffers_defaults_t0.j2 @@ -35,17 +35,17 @@ "queue1_downlink_lossy_profile": { "pool": "egress_lossy_pool", "size": "1778", - "dynamic_th": "-7" + "dynamic_th": "3" }, "queue2_downlink_lossy_profile": { "pool": "egress_lossy_pool", "size": "1778", - "dynamic_th": "-7" + "dynamic_th": "3" }, "queue3_downlink_lossy_profile": { "pool": "egress_lossy_pool", "size": "1778", - "dynamic_th": "-7" + "dynamic_th": "3" }, "queue4_downlink_lossy_profile": { "pool": "egress_lossy_pool", @@ -70,17 +70,17 @@ "queue1_uplink_lossy_profile": { "pool": "egress_lossy_pool", "size": "1778", - "dynamic_th": "-7" + "dynamic_th": "3" }, "queue2_uplink_lossy_profile": { "pool": "egress_lossy_pool", "size": "1778", - "dynamic_th": "-7" + "dynamic_th": "3" }, "queue3_uplink_lossy_profile": { "pool": "egress_lossy_pool", "size": "1778", - "dynamic_th": "-7" + "dynamic_th": "3" }, "queue4_uplink_lossy_profile": { "pool": "egress_lossy_pool", @@ -108,7 +108,7 @@ {% if DEVICE_METADATA and DEVICE_METADATA['localhost'] - and DEVICE_METADATA['localhost'].type == "ToRRouter" + and DEVICE_METADATA['localhost'].type in ('LeafRouter', 'ToRRouter', 'BackEndLeafRouter', 'BackEndToRRouter') and DEVICE_NEIGHBOR and DEVICE_NEIGHBOR_METADATA %} {%- macro generate_queue_buffers(ports) %} @@ -117,7 +117,7 @@ {% if DEVICE_NEIGHBOR[port] and DEVICE_NEIGHBOR[port].name and DEVICE_NEIGHBOR_METADATA[DEVICE_NEIGHBOR[port].name] - and DEVICE_NEIGHBOR_METADATA[DEVICE_NEIGHBOR[port].name].type in ('LeafRouter', 'ToRRouter') %} + and DEVICE_NEIGHBOR_METADATA[DEVICE_NEIGHBOR[port].name].type in ('LeafRouter', 'ToRRouter', 'BackEndLeafRouter', 'BackEndToRRouter') %} "{{ port }}|0": { "profile": "queue0_uplink_lossy_profile" }, diff --git a/device/arista/x86_64-arista_7060x6_64pe_b/Arista-7060X6-64PE-B-C512S2/buffers_defaults_t1.j2 b/device/arista/x86_64-arista_7060x6_64pe_b/Arista-7060X6-64PE-B-C512S2/buffers_defaults_t1.j2 index 6d06e5afb6..36db144887 100644 --- a/device/arista/x86_64-arista_7060x6_64pe_b/Arista-7060X6-64PE-B-C512S2/buffers_defaults_t1.j2 +++ b/device/arista/x86_64-arista_7060x6_64pe_b/Arista-7060X6-64PE-B-C512S2/buffers_defaults_t1.j2 @@ -35,17 +35,17 @@ "queue1_downlink_lossy_profile": { "pool": "egress_lossy_pool", "size": "1778", - "dynamic_th": "-7" + "dynamic_th": "3" }, "queue2_downlink_lossy_profile": { "pool": "egress_lossy_pool", "size": "1778", - "dynamic_th": "-7" + "dynamic_th": "3" }, "queue3_downlink_lossy_profile": { "pool": "egress_lossy_pool", "size": "1778", - "dynamic_th": "-7" + "dynamic_th": "3" }, "queue4_downlink_lossy_profile": { "pool": "egress_lossy_pool", @@ -70,17 +70,17 @@ "queue1_uplink_lossy_profile": { "pool": "egress_lossy_pool", "size": "1778", - "dynamic_th": "-7" + "dynamic_th": "3" }, "queue2_uplink_lossy_profile": { "pool": "egress_lossy_pool", "size": "1778", - "dynamic_th": "-7" + "dynamic_th": "3" }, "queue3_uplink_lossy_profile": { "pool": "egress_lossy_pool", "size": "1778", - "dynamic_th": "-7" + "dynamic_th": "3" }, "queue4_uplink_lossy_profile": { "pool": "egress_lossy_pool", @@ -108,7 +108,7 @@ {% if DEVICE_METADATA and DEVICE_METADATA['localhost'] - and DEVICE_METADATA['localhost'].type == "ToRRouter" + and DEVICE_METADATA['localhost'].type in ('LeafRouter', 'ToRRouter', 'BackEndLeafRouter', 'BackEndToRRouter') and DEVICE_NEIGHBOR and DEVICE_NEIGHBOR_METADATA %} {%- macro generate_queue_buffers(ports) %} @@ -117,7 +117,7 @@ {% if DEVICE_NEIGHBOR[port] and DEVICE_NEIGHBOR[port].name and DEVICE_NEIGHBOR_METADATA[DEVICE_NEIGHBOR[port].name] - and DEVICE_NEIGHBOR_METADATA[DEVICE_NEIGHBOR[port].name].type in ('LeafRouter', 'ToRRouter') %} + and DEVICE_NEIGHBOR_METADATA[DEVICE_NEIGHBOR[port].name].type in ('LeafRouter', 'ToRRouter', 'BackEndLeafRouter', 'BackEndToRRouter') %} "{{ port }}|0": { "profile": "queue0_uplink_lossy_profile" },