sonic-buildimage/platform/mellanox/asic_table.j2
Stephen Sun 1312feef1e Bug fix: Support dynamic buffer calculation on ACS-MSN3420 and ACS-MSN4410 (#7113)
- Why I did it
Add missed files for dynamic buffer calculation for ACS-MSN3420 and ACS-MSN4410

- How I did it
asic_table.j2: Add mapping from platform to ASIC
Add buffer_dynamic.json.j2 for ACS-MSN4410.

- How to verify it
Check whether the dynamic buffer calculation daemon starts successfully.

Signed-off-by: Stephen Sun <stephens@nvidia.com>
2021-04-08 18:36:27 +00:00

63 lines
2.1 KiB
Django/Jinja

{%- if DEVICE_METADATA is defined and DEVICE_METADATA['localhost']['platform'] is defined %}
{%- set platform = DEVICE_METADATA['localhost']['platform'] %}
{%- else -%}
{%- set platform = "vs-platform" %}
{%- endif -%}
[
{% set platform2asic = {
'x86_64-mlnx_lssn2700-r0':'MELLANOX-SPECTRUM',
'x86_64-mlnx_msn2010-r0':'MELLANOX-SPECTRUM',
'x86_64-mlnx_msn2100-r0':'MELLANOX-SPECTRUM',
'x86_64-mlnx_msn2410-r0':'MELLANOX-SPECTRUM',
'x86_64-mlnx_msn2700-r0':'MELLANOX-SPECTRUM',
'x86_64-mlnx_msn2700_simx-r0':'MELLANOX-SPECTRUM',
'x86_64-mlnx_msn2740-r0':'MELLANOX-SPECTRUM',
'x86_64-mlnx_msn3420-r0':'MELLANOX-SPECTRUM-2',
'x86_64-mlnx_msn3700c-r0':'MELLANOX-SPECTRUM-2',
'x86_64-mlnx_msn3700-r0':'MELLANOX-SPECTRUM-2',
'x86_64-mlnx_msn3700_simx-r0':'MELLANOX-SPECTRUM-2',
'x86_64-mlnx_msn3800-r0':'MELLANOX-SPECTRUM-2',
'x86_64-mlnx_msn4410-r0':'MELLANOX-SPECTRUM-3',
'x86_64-mlnx_msn4700_simx-r0':'MELLANOX-SPECTRUM-3',
'x86_64-mlnx_msn4700-r0':'MELLANOX-SPECTRUM-3',
'x86_64-mlnx_msn4600c-r0':'MELLANOX-SPECTRUM-3',
'x86_64-mlnx_msn4600-r0':'MELLANOX-SPECTRUM-3',
'vs-platform':'vs'
}
%}
{% set asic_type = platform2asic[platform] %}
{% if asic_type == 'MELLANOX-SPECTRUM' %}
{
"ASIC_TABLE:MELLANOX-SPECTRUM": {
"cell_size": "96",
"pipeline_latency": "19",
"mac_phy_delay": "0.8",
"peer_response_time": "3.8"
},
"OP": "SET"
}
{% elif asic_type == 'MELLANOX-SPECTRUM-2' %}
{
"ASIC_TABLE:MELLANOX-SPECTRUM-2": {
"cell_size": "144",
"pipeline_latency": "19",
"mac_phy_delay": "0.8",
"peer_response_time": "3.8"
},
"OP": "SET"
}
{% elif asic_type == 'MELLANOX-SPECTRUM-3' %}
{
"ASIC_TABLE:MELLANOX-SPECTRUM-3": {
"cell_size": "144",
"pipeline_latency": "19",
"mac_phy_delay": "0.8",
"peer_response_time": "3.8"
},
"OP": "SET"
}
{% endif %}
]