sonic-buildimage/platform/barefoot/asic_table.j2
Mariusz Stachura 9f88d03c2b
[QoS] Support dynamic headroom calculation for Barefoot platforms (#11708)
Signed-off-by: Mariusz Stachura <mariusz.stachura@intel.com>

What I did
Adding the dynamic headroom calculation support for Barefoot platforms.

Why I did it
Enabling dynamic mode for barefoot case.

How I verified it
The community tests are adjusted and pass.
2022-10-19 09:36:56 -07:00

25 lines
662 B
Django/Jinja

{%- if DEVICE_METADATA is defined and DEVICE_METADATA['localhost']['platform'] is defined %}
{%- set platform = DEVICE_METADATA['localhost']['platform'] %}
{%- endif -%}
[
{% set platform2asic = {
'x86_64-accton_as9516_32d-r0':'BAREFOOT-TOFINO-2',
'x86_64-accton_as9516bf_32d-r0':'BAREFOOT-TOFINO-2'
}
%}
{% set asic_type = platform2asic[platform] %}
{% if asic_type == 'BAREFOOT-TOFINO-2' %}
{
"ASIC_TABLE:BAREFOOT-TOFINO-2": {
"cell_size": "176",
"pipeline_latency": "68",
"mac_phy_delay": "0.8",
"peer_response_time": "9"
},
"OP": "SET"
}
{% endif %}
]