Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[202012] Adjust 7260 buffer sizes to accomodate extra lossless queues #11050

Merged
merged 7 commits into from
Jun 7, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Adjust 7260 buffer sizes for extra lossless queues
Signed-off-by: Neetha John <nejo@microsoft.com>
neethajohn committed Jun 6, 2022

Verified

This commit was signed with the committer’s verified signature.
williamdes William Desportes
commit 5ec9e41f3eec1018e89a58d0aa0d1346aaf08d9b
Original file line number Diff line number Diff line change
@@ -7,16 +7,18 @@
{%- endfor %}
{%- endmacro %}

{% import 'buffers_pool_sizes_t0.j2' as defs with context %}

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "33329088",
"size": "{{ defs.ingress_lossless_pool_size }}",
"type": "ingress",
"mode": "dynamic",
"xoff": "7827456"
},
"egress_lossy_pool": {
"size": "26663272",
"size": "{{ defs.egress_lossy_pool_size }}",
"type": "egress",
"mode": "dynamic"
},
Original file line number Diff line number Diff line change
@@ -7,19 +7,21 @@
{%- endfor %}
{%- endmacro %}

{% import 'buffers_pool_sizes_t1.j2' as defs with context %}

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
{# SS Tab2 Row 71 #}
"size": "33582016",
"size": "{{ defs.ingress_lossless_pool_size }}",
"type": "ingress",
"mode": "dynamic",
{# SS Tab2 Row 68 #}
"xoff": "8965632"
},
"egress_lossy_pool": {
{# SS Tab2 Row 60 #}
"size": "26866112",
"size": "{{ defs.egress_lossy_pool_size }}",
"type": "egress",
"mode": "dynamic"
},
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{% set ingress_lossless_pool_size = '33329088' %}
{% set egress_lossy_pool_size = '26663272' %}

{%- if ((SYSTEM_DEFAULTS is defined) and ('tunnel_qos_remap' in SYSTEM_DEFAULTS) and (SYSTEM_DEFAULTS['tunnel_qos_remap']['status'] == 'enabled')) and
((DEVICE_METADATA is defined) and ('localhost' in DEVICE_METADATA) and ('subtype' in DEVICE_METADATA['localhost']) and (DEVICE_METADATA['localhost']['subtype'] == 'DualToR')) %}
{%- set ingress_lossless_pool_size = '33169344' %}
{%- set egress_lossy_pool_size = '26535808' %}
{%- endif %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{%- set ingress_lossless_pool_size = '33582016' %}
{%- set egress_lossy_pool_size = '26866112' %}

{%- if ((SYSTEM_DEFAULTS is defined) and ('tunnel_qos_remap' in SYSTEM_DEFAULTS) and (SYSTEM_DEFAULTS['tunnel_qos_remap']['status'] == 'enabled')) and
((DEVICE_METADATA is defined) and ('localhost' in DEVICE_METADATA) and ('type' in DEVICE_METADATA['localhost']) and (DEVICE_METADATA['localhost']['type'] == 'LeafRouter')) %}
{%- set ingress_lossless_pool_size = '33182656' %}
{%- set egress_lossy_pool_size = '26546624' %}
{%- endif %}
Original file line number Diff line number Diff line change
@@ -15,16 +15,18 @@
{%- endfor %}
{%- endmacro %}

{% import 'buffers_pool_sizes_t0.j2' as defs with context %}

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "33329088",
"size": "{{ defs.ingress_lossless_pool_size }}",
"type": "ingress",
"mode": "dynamic",
"xoff": "7827456"
},
"egress_lossy_pool": {
"size": "26663272",
"size": "{{ defs.egress_lossy_pool_size }}",
"type": "egress",
"mode": "dynamic"
},
Original file line number Diff line number Diff line change
@@ -7,16 +7,18 @@
{%- endfor %}
{%- endmacro %}

{% import 'buffers_pool_sizes_t0.j2' as defs with context %}

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "33329088",
"size": "{{ defs.ingress_lossless_pool_size }}",
"type": "ingress",
"mode": "dynamic",
"xoff": "7827456"
},
"egress_lossy_pool": {
"size": "26663272",
"size": "{{ defs.egress_lossy_pool_size }}",
"type": "egress",
"mode": "dynamic"
},
Original file line number Diff line number Diff line change
@@ -7,16 +7,18 @@
{%- endfor %}
{%- endmacro %}

{% import 'buffers_pool_sizes_t0.j2' as defs with context %}

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "33329088",
"size": "{{ defs.ingress_lossless_pool_size }}",
"type": "ingress",
"mode": "dynamic",
"xoff": "7827456"
},
"egress_lossy_pool": {
"size": "26663272",
"size": "{{ defs.egress_lossy_pool_size }}",
"type": "egress",
"mode": "dynamic"
},