-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
MMU configuration for DellEMC Z9332 systems in T0 and T1 topolgy #7973
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see how this mapping goes with the 100G and 400G ports defined for this HW SKU. But there are 2 10G ports as well but I don't see that included here... is it being handled differently?