e7f1d4f3e2
* Remove the divide by 4 operation to the under the hood SAI This is to avoid the need and thus the confusion for application program to know the mmu internal architecture This change must have support from SAI change to reach the correct config Signed-off-by: Wenda <wenni@microsoft.com> * Relegate the divide by 4 operation to the under the hood SAI for egress lossless pool Extend to 7060 and 6100 Signed-off-by: Wenda <wenni@microsoft.com> * Add more TH/TH2 hwskus Signed-off-by: Wenda Ni <wenni@microsoft.com> * Update config test Signed-off-by: Wenda Ni <wenni@microsoft.com> * Add TH2 ingress lossy profile Signed-off-by: Wenda Ni <wenni@microsoft.com> * Move the divide by 4 operation to SAI internal Signed-off-by: Wenda Ni <wenni@microsoft.com> * [bcm SAI] Upgrade Broadcom SAI to version 3.5.3.1-15 - Broadcom SAI 3.5 GA release 20190924. Signed-off-by: Ying Xie <ying.xie@microsoft.com>
55 lines
1.4 KiB
Django/Jinja
55 lines
1.4 KiB
Django/Jinja
|
|
{%- set default_cable = '5m' %}
|
|
|
|
{%- set ports2cable = {
|
|
'torrouter_server' : '300m',
|
|
'leafrouter_torrouter' : '300m',
|
|
'spinerouter_leafrouter' : '300m'
|
|
}
|
|
-%}
|
|
|
|
{%- 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 * 4)) %}{%- endif %}
|
|
{%- endfor %}
|
|
{%- endmacro %}
|
|
|
|
{%- macro generate_buffer_pool_and_profiles() %}
|
|
"BUFFER_POOL": {
|
|
"ingress_lossless_pool": {
|
|
"size": "10875072",
|
|
"type": "ingress",
|
|
"mode": "dynamic",
|
|
"xoff": "4194112"
|
|
},
|
|
"egress_lossy_pool": {
|
|
"size": "9243812",
|
|
"type": "egress",
|
|
"mode": "dynamic"
|
|
},
|
|
"egress_lossless_pool": {
|
|
"size": "15982720",
|
|
"type": "egress",
|
|
"mode": "static"
|
|
}
|
|
},
|
|
"BUFFER_PROFILE": {
|
|
"ingress_lossy_profile": {
|
|
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
|
|
"size":"0",
|
|
"dynamic_th":"3"
|
|
},
|
|
"egress_lossless_profile": {
|
|
"pool":"[BUFFER_POOL|egress_lossless_pool]",
|
|
"size":"1518",
|
|
"static_th":"15982720"
|
|
},
|
|
"egress_lossy_profile": {
|
|
"pool":"[BUFFER_POOL|egress_lossy_pool]",
|
|
"size":"1518",
|
|
"dynamic_th":"3"
|
|
}
|
|
},
|
|
{%- endmacro %}
|