Skip to content

Commit b0620ee

Browse files
authored
[Mellanox] [SKU] Fix the shared headroom for 4600C-C64 SKU (#8242)
Removed ingress_lossy_pool from the BUFFER_POOL list Fx the the egress_lossless_pool_size value Signed-off-by: Vivek Reddy Karri <vkarri@nvidia.com>
1 parent 25b31e1 commit b0620ee

2 files changed

Lines changed: 10 additions & 22 deletions

File tree

device/mellanox/x86_64-mlnx_msn4600c-r0/Mellanox-SN4600C-C64/buffers_defaults_t0.j2

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% set default_cable = '5m' %}
22
{% set ingress_lossless_pool_size = '53379072' %}
3-
{% set ingress_lossy_pool_size = '1540096' %}
4-
{% set egress_lossless_pool_size = '60817408' %}
3+
{% set ingress_lossless_xoff_size = '1540096' %}
4+
{% set egress_lossless_pool_size = '60817392' %}
55
{% set egress_lossy_pool_size = '53379072' %}
66

77
{%- macro generate_port_lists(PORT_ALL) %}
@@ -16,13 +16,7 @@
1616
"ingress_lossless_pool": {
1717
{%- if dynamic_mode is not defined %}
1818
"size": "{{ ingress_lossless_pool_size }}",
19-
{%- endif %}
20-
"type": "ingress",
21-
"mode": "dynamic"
22-
},
23-
"ingress_lossy_pool": {
24-
{%- if dynamic_mode is not defined %}
25-
"size": "{{ ingress_lossy_pool_size }}",
19+
"xoff": "{{ ingress_lossless_xoff_size }}",
2620
{%- endif %}
2721
"type": "ingress",
2822
"mode": "dynamic"
@@ -47,7 +41,7 @@
4741
"dynamic_th":"7"
4842
},
4943
"ingress_lossy_profile": {
50-
"pool":"[BUFFER_POOL|ingress_lossy_pool]",
44+
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
5145
"size":"0",
5246
"dynamic_th":"3"
5347
},
@@ -73,7 +67,7 @@
7367
"BUFFER_PORT_INGRESS_PROFILE_LIST": {
7468
{% for port in port_names.split(',') %}
7569
"{{ port }}": {
76-
"profile_list" : "[BUFFER_PROFILE|ingress_lossless_profile],[BUFFER_PROFILE|ingress_lossy_profile]"
70+
"profile_list" : "[BUFFER_PROFILE|ingress_lossless_profile]"
7771
}{% if not loop.last %},{% endif %}
7872

7973
{% endfor %}

device/mellanox/x86_64-mlnx_msn4600c-r0/Mellanox-SN4600C-C64/buffers_defaults_t1.j2

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% set default_cable = '5m' %}
22
{% set ingress_lossless_pool_size = '52723712' %}
3-
{% set ingress_lossless_pool_xoff = '2195456' %}
4-
{% set egress_lossless_pool_size = '60817408' %}
3+
{% set ingress_lossless_xoff_size = '2195456' %}
4+
{% set egress_lossless_pool_size = '60817392' %}
55
{% set egress_lossy_pool_size = '52723712' %}
66

77
{%- macro generate_port_lists(PORT_ALL) %}
@@ -16,13 +16,7 @@
1616
"ingress_lossless_pool": {
1717
{%- if dynamic_mode is not defined %}
1818
"size": "{{ ingress_lossless_pool_size }}",
19-
{%- endif %}
20-
"type": "ingress",
21-
"mode": "dynamic"
22-
},
23-
"ingress_lossy_pool": {
24-
{%- if dynamic_mode is not defined %}
25-
"size": "{{ ingress_lossy_pool_size }}",
19+
"xoff": "{{ ingress_lossless_xoff_size }}",
2620
{%- endif %}
2721
"type": "ingress",
2822
"mode": "dynamic"
@@ -47,7 +41,7 @@
4741
"dynamic_th":"7"
4842
},
4943
"ingress_lossy_profile": {
50-
"pool":"[BUFFER_POOL|ingress_lossy_pool]",
44+
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
5145
"size":"0",
5246
"dynamic_th":"3"
5347
},
@@ -73,7 +67,7 @@
7367
"BUFFER_PORT_INGRESS_PROFILE_LIST": {
7468
{% for port in port_names.split(',') %}
7569
"{{ port }}": {
76-
"profile_list" : "[BUFFER_PROFILE|ingress_lossless_profile],[BUFFER_PROFILE|ingress_lossy_profile]"
70+
"profile_list" : "[BUFFER_PROFILE|ingress_lossless_profile]"
7771
}{% if not loop.last %},{% endif %}
7872

7973
{% endfor %}

0 commit comments

Comments
 (0)