f5e678cf84
* 1) DSCP 46 to 5; 2) ecn config for lossless traffic; 3) ecn on by default; 4) DWRR equal weight; Signed-off-by: Wenda <wenni@microsoft.com> * 1) link pg & queue 5 to lossy buffer profile; 2) ingress lossless alpha 1/8 Signed-off-by: Wenda <wenni@microsoft.com> * Update the test case for qos & buffer json template Signed-off-by: Wenda <wenni@microsoft.com> * Migrate a7050-qx32 and s6000 to use pg_profile lookup architecture Signed-off-by: Wenda <wenni@microsoft.com> * Update pg headroom egress service pool for a7050-qx-32s, a7050-qx32, and s6000 Signed-off-by: Wenda <wenni@microsoft.com> * Link queue 5 to lossy profile Signed-off-by: Wenda <wenni@microsoft.com>
94 lines
2.8 KiB
Django/Jinja
94 lines
2.8 KiB
Django/Jinja
{% set default_cable = '5m' %}
|
|
{% set ingress_lossless_pool_size = '2097152' %}
|
|
{% set ingress_lossy_pool_size = '5242880' %}
|
|
{% set egress_lossless_pool_size = '16777152' %}
|
|
{% set egress_lossy_pool_size = '5242880' %}
|
|
|
|
{%- macro generate_port_lists(PORT_ALL) %}
|
|
{# Generate list of ports #}
|
|
{%- for port_idx in range(0, 32) %}
|
|
{%- if PORT_ALL.append("Ethernet%d" % (port_idx)) %}{%- endif %}
|
|
{%- endfor %}
|
|
{%- endmacro %}
|
|
|
|
{%- macro generate_buffer_pool_and_profiles() %}
|
|
"BUFFER_POOL": {
|
|
"ingress_lossless_pool": {
|
|
"size": "{{ ingress_lossless_pool_size }}",
|
|
"type": "ingress",
|
|
"mode": "dynamic"
|
|
},
|
|
"ingress_lossy_pool": {
|
|
"size": "{{ ingress_lossy_pool_size }}",
|
|
"type": "ingress",
|
|
"mode": "dynamic"
|
|
},
|
|
"egress_lossless_pool": {
|
|
"size": "{{ egress_lossless_pool_size }}",
|
|
"type": "egress",
|
|
"mode": "dynamic"
|
|
},
|
|
"egress_lossy_pool": {
|
|
"size": "{{ egress_lossy_pool_size }}",
|
|
"type": "egress",
|
|
"mode": "dynamic"
|
|
}
|
|
},
|
|
"BUFFER_PROFILE": {
|
|
"ingress_lossless_profile": {
|
|
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
|
|
"size":"0",
|
|
"dynamic_th":"0"
|
|
},
|
|
"ingress_lossy_profile": {
|
|
"pool":"[BUFFER_POOL|ingress_lossy_pool]",
|
|
"size":"0",
|
|
"dynamic_th":"3"
|
|
},
|
|
"egress_lossless_profile": {
|
|
"pool":"[BUFFER_POOL|egress_lossless_pool]",
|
|
"size":"0",
|
|
"dynamic_th":"7"
|
|
},
|
|
"egress_lossy_profile": {
|
|
"pool":"[BUFFER_POOL|egress_lossy_pool]",
|
|
"size":"4096",
|
|
"dynamic_th":"3"
|
|
},
|
|
"q_lossy_profile": {
|
|
"pool":"[BUFFER_POOL|egress_lossy_pool]",
|
|
"size":"0",
|
|
"dynamic_th":"3"
|
|
}
|
|
},
|
|
{%- endmacro %}
|
|
|
|
{%- macro generate_profile_lists(port_names) %}
|
|
"BUFFER_PORT_INGRESS_PROFILE_LIST": {
|
|
"{{ port_names }}": {
|
|
"profile_list" : "[BUFFER_PROFILE|ingress_lossless_profile],[BUFFER_PROFILE|ingress_lossy_profile]"
|
|
}
|
|
},
|
|
"BUFFER_PORT_EGRESS_PROFILE_LIST": {
|
|
"{{ port_names }}": {
|
|
"profile_list" : "[BUFFER_PROFILE|egress_lossless_profile],[BUFFER_PROFILE|egress_lossy_profile]"
|
|
}
|
|
}
|
|
{%- endmacro %}
|
|
|
|
{%- macro generate_queue_buffers(port_names) %}
|
|
"BUFFER_QUEUE": {
|
|
"{{ port_names }}|3-4": {
|
|
"profile" : "[BUFFER_PROFILE|egress_lossless_profile]"
|
|
},
|
|
"{{ port_names }}|0-1": {
|
|
"profile" : "[BUFFER_PROFILE|q_lossy_profile]"
|
|
},
|
|
"{{ port_names }}|5": {
|
|
"profile" : "[BUFFER_PROFILE|q_lossy_profile]"
|
|
}
|
|
}
|
|
{%- endmacro %}
|
|
|
|
|