Skip to content

Commit

Permalink
Updated traffic scheduler settings for HWSKUs : DellEMC-Z9332f-O32 & …
Browse files Browse the repository at this point in the history
…DellEMC-Z9332f-M-O16C64 (sonic-net#9927)
  • Loading branch information
vmittal-msft authored Feb 16, 2022
1 parent 6293a09 commit 304ec5b
Show file tree
Hide file tree
Showing 5 changed files with 4,272 additions and 1 deletion.
28 changes: 27 additions & 1 deletion files/build_templates/qos_config.j2
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

{%- set pfc_to_pg_map_supported_asics = ['mellanox', 'barefoot', 'marvell'] -%}
{%- set backend_device_types = ['BackEndToRRouter', 'BackEndLeafRouter'] -%}

{%- set apollo_resource_types = ['DL-NPU-Apollo'] -%}

{
{% if generate_tc_to_pg_map is defined %}
Expand Down Expand Up @@ -156,6 +156,22 @@
}
},
{% endif %}
{% if 'resource_type' in DEVICE_METADATA['localhost'] and DEVICE_METADATA['localhost']['resource_type'] in apollo_resource_types %}
"SCHEDULER": {
"scheduler.0": {
"type" : "DWRR",
"weight": "1"
},
"scheduler.1": {
"type" : "DWRR",
"weight": "1"
},
"scheduler.2": {
"type" : "DWRR",
"weight": "100"
}
},
{% else %}
"SCHEDULER": {
"scheduler.0": {
"type" : "DWRR",
Expand All @@ -166,6 +182,7 @@
"weight": "15"
}
},
{% endif %}
{% if asic_type in pfc_to_pg_map_supported_asics %}
"PFC_PRIORITY_TO_PRIORITY_GROUP_MAP": {
"AZURE": {
Expand Down Expand Up @@ -221,12 +238,21 @@
"wred_profile": "[WRED_PROFILE|AZURE_LOSSLESS]"
},
{% endfor %}
{% if 'resource_type' in DEVICE_METADATA['localhost'] and DEVICE_METADATA['localhost']['resource_type'] in apollo_resource_types %}
{% for port in PORT_ACTIVE %}
"{{ port }}|4": {
"scheduler" : "[SCHEDULER|scheduler.2]",
"wred_profile": "[WRED_PROFILE|AZURE_LOSSLESS]"
},
{% endfor %}
{% else %}
{% for port in PORT_ACTIVE %}
"{{ port }}|4": {
"scheduler" : "[SCHEDULER|scheduler.1]",
"wred_profile": "[WRED_PROFILE|AZURE_LOSSLESS]"
},
{% endfor %}
{% endif %}
{% for port in PORT_ACTIVE %}
"{{ port }}|0": {
"scheduler": "[SCHEDULER|scheduler.0]"
Expand Down
Loading

0 comments on commit 304ec5b

Please sign in to comment.