dba7b21b30
50G data is not accurate, needs further update. Signed-off-by: Kevin Wang <shengkaiwang@microsoft.com>
52 lines
1.6 KiB
Django/Jinja
52 lines
1.6 KiB
Django/Jinja
{%- set default_cable = '5m' %}
|
|
|
|
{%- include 'buffer_ports_t0.j2' %}
|
|
|
|
{%- import 'buffers_pool_sizes_t0.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": {
|
|
"size": "{{ ingress_lossless_pool_size }}",
|
|
"type": "ingress",
|
|
"mode": "dynamic",
|
|
"xoff": "7827456"
|
|
},
|
|
"egress_lossy_pool": {
|
|
"size": "{{ egress_lossy_pool_size }}",
|
|
"type": "egress",
|
|
"mode": "dynamic"
|
|
},
|
|
"egress_lossless_pool": {
|
|
"size": "42349632",
|
|
"type": "egress",
|
|
"mode": "static"
|
|
}
|
|
},
|
|
"BUFFER_PROFILE": {
|
|
"ingress_lossy_profile": {
|
|
"pool":"ingress_lossless_pool",
|
|
"size":"0",
|
|
"static_th":"44302336"
|
|
},
|
|
"egress_lossless_profile": {
|
|
"pool":"egress_lossless_pool",
|
|
"size":"0",
|
|
"static_th":"42349632"
|
|
},
|
|
"egress_lossy_profile": {
|
|
"pool":"egress_lossy_pool",
|
|
"size":"1664",
|
|
"dynamic_th":"-1"
|
|
}
|
|
},
|
|
{%- endmacro %}
|
|
|
|
{% import 'buffers_extra_queues.j2' as defs with context %}
|
|
|
|
{%- macro generate_queue_buffers_with_extra_lossless_queues(port_names, port_names_require_extra_buffer) %}
|
|
{{ defs.generate_queue_buffers_with_extra_lossless_queues(port_names, port_names_require_extra_buffer) }}
|
|
{%- endmacro %}
|