This repository has been archived by the owner on Mar 1, 2023. It is now read-only.
forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MMU configuration for Z9332 systems in T0 and T1 topolgy (sonic-net#7973
) Why I did it MMU configuration for DellEMC Z9332 systems in T0/T1 topology How I did it Updated config.bcm, QoS/Buffer pool and lossy/lossless profile settings How to verify it Verified that Dell systems are booting up fine and basic test cases passing.
- Loading branch information
1 parent
e5a6a45
commit 2483860
Showing
12 changed files
with
232 additions
and
582 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
device/dell/x86_64-dellemc_z9332f_d1508-r0/DellEMC-Z9332f-M-O16C64/buffers.json.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
{%- set default_topo = 't1' %} | ||
{%- include 'buffers_config.j2' %} | ||
{%- set default_topo = 't0' %} | ||
{%- include 'buffers_config.j2' %} |
77 changes: 57 additions & 20 deletions
77
device/dell/x86_64-dellemc_z9332f_d1508-r0/DellEMC-Z9332f-M-O16C64/buffers_defaults_t0.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,57 @@ | ||
|
||
{%- set default_cable = '40m' %} | ||
|
||
{%- macro generate_buffer_pool_and_profiles() %} | ||
"BUFFER_POOL": { | ||
}, | ||
"BUFFER_PROFILE": { | ||
}, | ||
{%- endmacro %} | ||
|
||
{%- macro generate_pg_profils(port_names_active) %} | ||
"BUFFER_PG": { | ||
}, | ||
{%- endmacro %} | ||
|
||
{% macro generate_queue_buffers(port_names_active) %} | ||
"BUFFER_QUEUE": { | ||
} | ||
{% endmacro %} | ||
|
||
{%- set default_cable = '300m' %} | ||
|
||
{%- macro generate_port_lists(PORT_ALL) %} | ||
{# Generate list of ports #} | ||
{%- for port_idx in range(0,12) %} | ||
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 8)) %}{%- endif %} | ||
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 2) + 2) %}{%- endif %} | ||
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 2) + 4) %}{%- endif %} | ||
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 2) + 6) %}{%- endif %} | ||
{%- endfor %} | ||
{%- for port_idx in range(12,16) %} | ||
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 8)) %}{%- endif %} | ||
{%- endfor %} | ||
{%- for port_idx in range(16,20) %} | ||
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 8)) %}{%- endif %} | ||
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 2) + 2) %}{%- endif %} | ||
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 2) + 4) %}{%- endif %} | ||
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 2) + 6) %}{%- endif %} | ||
{%- endfor %} | ||
{%- for port_idx in range(20,32) %} | ||
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 8)) %}{%- endif %} | ||
{%- endfor %} | ||
{%- endmacro %} | ||
|
||
|
||
{%- macro generate_buffer_pool_and_profiles() %} | ||
"BUFFER_POOL": { | ||
"ingress_lossless_pool": { | ||
"size": "66800476", | ||
"type": "ingress", | ||
"mode": "dynamic", | ||
"xoff": "8644128" | ||
}, | ||
"egress_lossless_pool": { | ||
"size": "66800476", | ||
"type": "egress", | ||
"mode": "static" | ||
} | ||
}, | ||
"BUFFER_PROFILE": { | ||
"ingress_lossy_profile": { | ||
"pool":"[BUFFER_POOL|ingress_lossless_pool]", | ||
"size":"0", | ||
"static_th":"66800476" | ||
}, | ||
"egress_lossless_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossless_pool]", | ||
"size":"0", | ||
"static_th":"67117468" | ||
}, | ||
"egress_lossy_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossless_pool]", | ||
"size":"1778", | ||
"dynamic_th":"1" | ||
} | ||
}, | ||
{%- endmacro %} |
77 changes: 57 additions & 20 deletions
77
device/dell/x86_64-dellemc_z9332f_d1508-r0/DellEMC-Z9332f-M-O16C64/buffers_defaults_t1.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,57 @@ | ||
|
||
{%- set default_cable = '40m' %} | ||
|
||
{%- macro generate_buffer_pool_and_profiles() %} | ||
"BUFFER_POOL": { | ||
}, | ||
"BUFFER_PROFILE": { | ||
}, | ||
{%- endmacro %} | ||
|
||
{%- macro generate_pg_profils(port_names_active) %} | ||
"BUFFER_PG": { | ||
}, | ||
{%- endmacro %} | ||
|
||
{% macro generate_queue_buffers(port_names_active) %} | ||
"BUFFER_QUEUE": { | ||
} | ||
{% endmacro %} | ||
|
||
{%- set default_cable = '300m' %} | ||
|
||
{%- macro generate_port_lists(PORT_ALL) %} | ||
{# Generate list of ports #} | ||
{%- for port_idx in range(0,12) %} | ||
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 8)) %}{%- endif %} | ||
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 2) + 2) %}{%- endif %} | ||
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 2) + 4) %}{%- endif %} | ||
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 2) + 6) %}{%- endif %} | ||
{%- endfor %} | ||
{%- for port_idx in range(12,16) %} | ||
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 8)) %}{%- endif %} | ||
{%- endfor %} | ||
{%- for port_idx in range(16,20) %} | ||
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 8)) %}{%- endif %} | ||
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 2) + 2) %}{%- endif %} | ||
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 2) + 4) %}{%- endif %} | ||
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 2) + 6) %}{%- endif %} | ||
{%- endfor %} | ||
{%- for port_idx in range(20,32) %} | ||
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 8)) %}{%- endif %} | ||
{%- endfor %} | ||
{%- endmacro %} | ||
|
||
|
||
{%- macro generate_buffer_pool_and_profiles() %} | ||
"BUFFER_POOL": { | ||
"ingress_lossless_pool": { | ||
"size": "66800476", | ||
"type": "ingress", | ||
"mode": "dynamic", | ||
"xoff": "8644128" | ||
}, | ||
"egress_lossless_pool": { | ||
"size": "66800476", | ||
"type": "egress", | ||
"mode": "static" | ||
} | ||
}, | ||
"BUFFER_PROFILE": { | ||
"ingress_lossy_profile": { | ||
"pool":"[BUFFER_POOL|ingress_lossless_pool]", | ||
"size":"0", | ||
"static_th":"66800476" | ||
}, | ||
"egress_lossless_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossless_pool]", | ||
"size":"0", | ||
"static_th":"67117468" | ||
}, | ||
"egress_lossy_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossless_pool]", | ||
"size":"1778", | ||
"dynamic_th":"1" | ||
} | ||
}, | ||
{%- endmacro %} |
35 changes: 12 additions & 23 deletions
35
device/dell/x86_64-dellemc_z9332f_d1508-r0/DellEMC-Z9332f-M-O16C64/pg_profile_lookup.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,12 @@ | ||
# PG lossless profiles. | ||
# speed cable size xon xoff threshold xon_offset | ||
10000 5m 1270 0 190500 -2 2540 | ||
25000 5m 1270 0 190500 -2 2540 | ||
40000 5m 1270 0 190500 -2 2540 | ||
50000 5m 1270 0 190500 -2 2540 | ||
100000 5m 1270 0 190500 -2 2540 | ||
200000 5m 1270 0 190500 -2 2540 | ||
400000 5m 1270 0 190500 -2 2540 | ||
10000 40m 1270 0 190500 -2 2540 | ||
25000 40m 1270 0 190500 -2 2540 | ||
40000 40m 1270 0 190500 -2 2540 | ||
50000 40m 1270 0 190500 -2 2540 | ||
100000 40m 1270 0 190500 -2 2540 | ||
200000 40m 1270 0 190500 -2 2540 | ||
400000 40m 1270 0 190500 -2 2540 | ||
10000 300m 1270 0 190500 -2 2540 | ||
25000 300m 1270 0 190500 -2 2540 | ||
40000 300m 1270 0 190500 -2 2540 | ||
50000 300m 1270 0 190500 -2 2540 | ||
100000 300m 1270 0 190500 -2 2540 | ||
200000 300m 1270 0 190500 -2 2540 | ||
400000 300m 1270 0 190500 -2 2540 | ||
# PG lossless profiles. | ||
# speed cable size xon xoff threshold xon_offset | ||
100000 5m 2540 2540 68580 -2 2540 | ||
100000 40m 2540 2540 74422 -2 2540 | ||
100000 300m 2540 2540 117348 -2 2540 | ||
100000 1000m 2540 2540 233172 -2 2540 | ||
100000 2000m 2540 2540 398526 -2 2540 | ||
400000 5m 2540 2540 35776 -2 2540 | ||
400000 40m 2540 2540 53248 -2 2540 | ||
400000 300m 2540 2540 66560 -2 2540 | ||
400000 1000m 2540 2540 79872 -2 2540 | ||
400000 2000m 2540 2540 54528 -2 2540 |
Oops, something went wrong.