84aca00847
Why I did it This PR is to backport #11569 into 202012 branch. This PR is to apply different DSCP_TO_TC_MAP to downlink and uplink ports on T1 in dualtor deployment. For T1 downlink ports (To T0) The DSCP_TO_TC_MAP is not changed. DSCP2 and DSCP6 are mapped to TC2 and TC6 respectively. For T1 uplink ports (To T1) A new DSCP_TO_TC_MAP|AZURE_UPLINK is defined and applied. DSCP2 and DSCP6 are mapped to TC1 to avoid mixing up lossy and lossless traffic from T2. The extra lossy PG2 and PG6 added in PR #11157 is reverted as well because no traffic from T2 is mapped to PG2 or PG6 now. How I did it Define a new map DSCP_TO_TC_MAP|AZURE_UPLINK for 7260 T1. How to verify it Verified by test case in test_j2files.py.
59 lines
1.8 KiB
Django/Jinja
59 lines
1.8 KiB
Django/Jinja
{%- set default_cable = '300m' %}
|
|
|
|
{%- include 'buffer_ports_t1.j2' %}
|
|
|
|
{%- import 'buffers_pool_sizes_t1.j2' as defs with context %}
|
|
{%- set ingress_lossless_pool_size = defs.ingress_lossless_pool_size %}
|
|
{%- set egress_lossy_pool_size = defs.egress_lossy_pool_size %}
|
|
|
|
{%- macro generate_buffer_pool_and_profiles() %}
|
|
"BUFFER_POOL": {
|
|
"ingress_lossless_pool": {
|
|
{# SS Tab2 Row 71 #}
|
|
"size": "{{ ingress_lossless_pool_size }}",
|
|
"type": "ingress",
|
|
"mode": "dynamic",
|
|
{# SS Tab2 Row 68 #}
|
|
"xoff": "8965632"
|
|
},
|
|
"egress_lossy_pool": {
|
|
{# SS Tab2 Row 60 #}
|
|
"size": "{{ egress_lossy_pool_size }}",
|
|
"type": "egress",
|
|
"mode": "dynamic"
|
|
},
|
|
"egress_lossless_pool": {
|
|
{# SS Tab2 Row 56 #}
|
|
"size": "43481152",
|
|
"type": "egress",
|
|
"mode": "static"
|
|
}
|
|
},
|
|
"BUFFER_PROFILE": {
|
|
"ingress_lossy_profile": {
|
|
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
|
|
"size":"0",
|
|
{# SS Tab1 Row 9 #}
|
|
"static_th":"44302336"
|
|
},
|
|
"egress_lossless_profile": {
|
|
"pool":"[BUFFER_POOL|egress_lossless_pool]",
|
|
"size":"0",
|
|
{# SS Tab2 Row 56 #}
|
|
"static_th":"43481152"
|
|
},
|
|
"egress_lossy_profile": {
|
|
"pool":"[BUFFER_POOL|egress_lossy_pool]",
|
|
"size":"1664",
|
|
"dynamic_th":"-1"
|
|
}
|
|
},
|
|
{%- endmacro %}
|
|
|
|
{% import 'buffers_extra_queues.j2' as defs1 with context %}
|
|
|
|
{%- macro generate_queue_buffers_with_extra_lossless_queues(port_names, port_names_require_extra_buffer) %}
|
|
{{ defs1.generate_queue_buffers_with_extra_lossless_queues(port_names, port_names_require_extra_buffer) }}
|
|
{%- endmacro %}
|
|
|