Skip to content

Commit

Permalink
Fix buffer configs for TH5 C224 SKU (#21624)
Browse files Browse the repository at this point in the history
Why I did it
The values in this config were found to be incorrect when testing. With fewer interfaces than the C256, the reserved buffer space is smaller and therefore the shared limit in this config must be smaller.

The BUFFER_QUEUE macro was also not present, causing the defaults to be used which referenced lossless profiles.

Work item tracking
Microsoft ADO (number only):
  • Loading branch information
rick-arista authored Feb 8, 2025
1 parent a257ac9 commit 2a4bc3e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossy_pool": {
"size": "166607744",
"size": "166266368",
"type": "ingress",
"mode": "dynamic"
},
"egress_lossy_pool": {
"size": "166607744",
"size": "166266368",
"type": "egress",
"mode": "dynamic"
}
Expand All @@ -28,3 +28,13 @@
}
},
{%- endmacro %}
{%- macro generate_queue_buffers(ports) %}
"BUFFER_QUEUE": {
{% for port in ports.split(',') %}
"{{ port }}|0-9": {
"profile" : "egress_lossy_profile"
}
{%- if not loop.last -%},{% endif %}
{% endfor %}
}
{%- endmacro %}
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossy_pool": {
"size": "166607744",
"size": "166266368",
"type": "ingress",
"mode": "dynamic"
},
"egress_lossy_pool": {
"size": "166607744",
"size": "166266368",
"type": "egress",
"mode": "dynamic"
}
Expand All @@ -28,3 +28,13 @@
}
},
{%- endmacro %}
{%- macro generate_queue_buffers(ports) %}
"BUFFER_QUEUE": {
{% for port in ports.split(',') %}
"{{ port }}|0-9": {
"profile" : "egress_lossy_profile"
}
{%- if not loop.last -%},{% endif %}
{% endfor %}
}
{%- endmacro %}

0 comments on commit 2a4bc3e

Please # to comment.