f4ed88297d
* add MSN4700 device files * update ACS-MSN4700 sai profile * update buffer pool size, headroom, sensor conf, port config and reboot scripts * fix ident * update sensor conf and buffer pool * [sn4700] add sku 4700 to chassis.py * [Mellanox-4700] Add 4700 info to psu and thermal platform API * update buffer config file template to the latest. update SAI profile to use 100G X 4lanes for now update port_config.ini according to the SAI profile * [Mellanox]Update the buffer configurations for 4700 * fix alignment in pg_profile_lookup.ini * add platform components file for new sku * Update device/mellanox/x86_64-mlnx_msn4700-r0/ACS-MSN4700/pg_profile_lookup.ini Co-Authored-By: Nazarii Hnydyn <nazariig@mellanox.com> * remove redundant line * [Mellanox]Correct type, buffer size Co-authored-by: Nazarii Hnydyn <nazariig@mellanox.com> Co-authored-by: junchao <junchao@mellanox.com> Co-authored-by: Stephen Sun <stephens@mellanox.com>
107 lines
3.1 KiB
Django/Jinja
107 lines
3.1 KiB
Django/Jinja
{% set default_cable = '5m' %}
|
|
{% set ingress_lossless_pool_size = '36011952' %}
|
|
{% set ingress_lossy_pool_size = '36011952' %}
|
|
{% set egress_lossless_pool_size = '60817392' %}
|
|
{% set egress_lossy_pool_size = '36011952' %}
|
|
|
|
{%- 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": {
|
|
{% for port in port_names.split(',') %}
|
|
"{{ port }}": {
|
|
"profile_list" : "[BUFFER_PROFILE|ingress_lossless_profile],[BUFFER_PROFILE|ingress_lossy_profile]"
|
|
}{% if not loop.last %},{% endif %}
|
|
|
|
{% endfor %}
|
|
},
|
|
"BUFFER_PORT_EGRESS_PROFILE_LIST": {
|
|
{% for port in port_names.split(',') %}
|
|
"{{ port }}": {
|
|
"profile_list" : "[BUFFER_PROFILE|egress_lossless_profile],[BUFFER_PROFILE|egress_lossy_profile]"
|
|
}{% if not loop.last %},{% endif %}
|
|
|
|
{% endfor %}
|
|
}
|
|
{%- endmacro %}
|
|
|
|
{%- macro generate_queue_buffers(port_names) %}
|
|
"BUFFER_QUEUE": {
|
|
{% for port in port_names.split(',') %}
|
|
"{{ port }}|3-4": {
|
|
"profile" : "[BUFFER_PROFILE|egress_lossless_profile]"
|
|
},
|
|
{% endfor %}
|
|
{% for port in port_names.split(',') %}
|
|
"{{ port }}|0-2": {
|
|
"profile" : "[BUFFER_PROFILE|q_lossy_profile]"
|
|
},
|
|
{% endfor %}
|
|
{% for port in port_names.split(',') %}
|
|
"{{ port }}|5-6": {
|
|
"profile" : "[BUFFER_PROFILE|q_lossy_profile]"
|
|
}{% if not loop.last %},{% endif %}
|
|
|
|
{% endfor %}
|
|
}
|
|
{%- endmacro %}
|
|
|
|
|