-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[Arista] Add MMU configs for Arista-7050CX3-32S-C28S4 #22023
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
Closed
Closed
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
52 changes: 52 additions & 0 deletions
52
...arista/x86_64-arista_7050cx3_32s/Arista-7050CX3-32S-C28S4/BALANCED/buffers_defaults_t0.j2
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| {%- set default_cable = '300m' %} | ||
|
|
||
| {%- macro generate_port_lists(PORT_ALL) %} | ||
| {# Generate list of ports #} | ||
| {%- for port_idx in range(0,32) %} | ||
| {%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %} | ||
| {%- endfor %} | ||
| {%- endmacro %} | ||
|
|
||
| {%- macro generate_buffer_pool_and_profiles() %} | ||
| "BUFFER_POOL": { | ||
| "ingress_lossless_pool": { | ||
| "size": "32732160", | ||
| "type": "ingress", | ||
| "mode": "dynamic", | ||
| "xoff": "1622016" | ||
| }, | ||
| "egress_lossy_pool": { | ||
| "size": "24709632", | ||
| "type": "egress", | ||
| "mode": "dynamic" | ||
| }, | ||
| "egress_lossless_pool": { | ||
| "size": "32599040", | ||
| "type": "egress", | ||
| "mode": "static" | ||
| } | ||
| }, | ||
| "BUFFER_PROFILE": { | ||
| "ingress_lossy_profile": { | ||
| "pool":"ingress_lossless_pool", | ||
| "size":"0", | ||
| "static_th":"32732160" | ||
| }, | ||
| "egress_lossless_profile": { | ||
| "pool":"egress_lossless_pool", | ||
| "size":"0", | ||
| "static_th":"32599040" | ||
| }, | ||
| "egress_lossy_profile": { | ||
| "pool":"egress_lossy_pool", | ||
| "size":"1792", | ||
| "dynamic_th":"3" | ||
| } | ||
| }, | ||
| {%- endmacro %} | ||
|
|
||
| {% import 'buffers_extra_queues.j2' as defs with context %} | ||
|
|
||
| {%- macro generate_queue_buffers_with_extra_lossless_queues(port_names, port_names_require_extra_buffer) %} | ||
| {{ defs.generate_queue_buffers_with_extra_lossless_queues(port_names, port_names_require_extra_buffer) }} | ||
| {%- endmacro %} | ||
46 changes: 46 additions & 0 deletions
46
...arista/x86_64-arista_7050cx3_32s/Arista-7050CX3-32S-C28S4/BALANCED/buffers_defaults_t1.j2
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| {%- set default_cable = '300m' %} | ||
|
|
||
| {%- macro generate_port_lists(PORT_ALL) %} | ||
| {# Generate list of ports #} | ||
| {%- for port_idx in range(0,32) %} | ||
| {%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %} | ||
| {%- endfor %} | ||
| {%- endmacro %} | ||
|
|
||
| {%- macro generate_buffer_pool_and_profiles() %} | ||
| "BUFFER_POOL": { | ||
| "ingress_lossless_pool": { | ||
| "size": "32712448", | ||
| "type": "ingress", | ||
| "mode": "dynamic", | ||
| "xoff": "1622016" | ||
| }, | ||
| "egress_lossy_pool": { | ||
| "size": "24709632", | ||
| "type": "egress", | ||
| "mode": "dynamic" | ||
| }, | ||
| "egress_lossless_pool": { | ||
| "size": "32599040", | ||
| "type": "egress", | ||
| "mode": "static" | ||
| } | ||
| }, | ||
| "BUFFER_PROFILE": { | ||
| "ingress_lossy_profile": { | ||
| "pool":"ingress_lossless_pool", | ||
| "size":"0", | ||
| "static_th":"32712448" | ||
| }, | ||
| "egress_lossless_profile": { | ||
| "pool":"egress_lossless_pool", | ||
| "size":"0", | ||
| "static_th":"32599040" | ||
| }, | ||
| "egress_lossy_profile": { | ||
| "pool":"egress_lossy_pool", | ||
| "size":"1792", | ||
| "dynamic_th":"3" | ||
| } | ||
| }, | ||
| {%- endmacro %} |
11 changes: 11 additions & 0 deletions
11
.../arista/x86_64-arista_7050cx3_32s/Arista-7050CX3-32S-C28S4/BALANCED/pg_profile_lookup.ini
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # PG lossless profiles. | ||
| # speed cable size xon xoff threshold xon_offset | ||
| 10000 5m 4608 4608 160000 0 4608 | ||
| 50000 5m 4608 4608 160000 0 4608 | ||
| 100000 5m 4608 4608 160000 0 4608 | ||
| 10000 40m 4608 4608 160000 0 4608 | ||
| 50000 40m 4608 4608 160000 0 4608 | ||
| 100000 40m 4608 4608 160000 0 4608 | ||
| 10000 300m 4608 4608 160000 0 4608 | ||
| 50000 300m 4608 4608 160000 0 4608 | ||
| 100000 300m 4608 4608 160000 0 4608 |
285 changes: 285 additions & 0 deletions
285
device/arista/x86_64-arista_7050cx3_32s/Arista-7050CX3-32S-C28S4/BALANCED/qos.json.j2
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,285 @@ | ||
| {% if 'subtype' in DEVICE_METADATA['localhost'] and DEVICE_METADATA['localhost']['subtype'] == 'DualToR' %} | ||
| {% set different_dscp_to_tc_map = true %} | ||
| {% set different_tc_to_queue_map = true %} | ||
| {%- macro generate_dscp_to_tc_map() %} | ||
| "DSCP_TO_TC_MAP": { | ||
| "AZURE": { | ||
| "0" : "1", | ||
| "1" : "1", | ||
| "2" : "1", | ||
| "3" : "3", | ||
| "4" : "4", | ||
| "5" : "1", | ||
| "6" : "1", | ||
| "7" : "1", | ||
| "8" : "0", | ||
| "9" : "1", | ||
| "10": "1", | ||
| "11": "1", | ||
| "12": "1", | ||
| "13": "1", | ||
| "14": "1", | ||
| "15": "1", | ||
| "16": "1", | ||
| "17": "1", | ||
| "18": "1", | ||
| "19": "1", | ||
| "20": "1", | ||
| "21": "1", | ||
| "22": "1", | ||
| "23": "1", | ||
| "24": "1", | ||
| "25": "1", | ||
| "26": "1", | ||
| "27": "1", | ||
| "28": "1", | ||
| "29": "1", | ||
| "30": "1", | ||
| "31": "1", | ||
| "32": "1", | ||
| "33": "8", | ||
| "34": "1", | ||
| "35": "1", | ||
| "36": "1", | ||
| "37": "1", | ||
| "38": "1", | ||
| "39": "1", | ||
| "40": "1", | ||
| "41": "1", | ||
| "42": "1", | ||
| "43": "1", | ||
| "44": "1", | ||
| "45": "1", | ||
| "46": "5", | ||
| "47": "1", | ||
| "48": "7", | ||
| "49": "1", | ||
| "50": "1", | ||
| "51": "1", | ||
| "52": "1", | ||
| "53": "1", | ||
| "54": "1", | ||
| "55": "1", | ||
| "56": "1", | ||
| "57": "1", | ||
| "58": "1", | ||
| "59": "1", | ||
| "60": "1", | ||
| "61": "1", | ||
| "62": "1", | ||
| "63": "1" | ||
| }, | ||
| "AZURE_UPLINK": { | ||
| "0" : "1", | ||
| "1" : "1", | ||
| "2" : "2", | ||
| "3" : "3", | ||
| "4" : "4", | ||
| "5" : "1", | ||
| "6" : "6", | ||
| "7" : "1", | ||
| "8" : "0", | ||
| "9" : "1", | ||
| "10": "1", | ||
| "11": "1", | ||
| "12": "1", | ||
| "13": "1", | ||
| "14": "1", | ||
| "15": "1", | ||
| "16": "1", | ||
| "17": "1", | ||
| "18": "1", | ||
| "19": "1", | ||
| "20": "1", | ||
| "21": "1", | ||
| "22": "1", | ||
| "23": "1", | ||
| "24": "1", | ||
| "25": "1", | ||
| "26": "1", | ||
| "27": "1", | ||
| "28": "1", | ||
| "29": "1", | ||
| "30": "1", | ||
| "31": "1", | ||
| "32": "1", | ||
| "33": "8", | ||
| "34": "1", | ||
| "35": "1", | ||
| "36": "1", | ||
| "37": "1", | ||
| "38": "1", | ||
| "39": "1", | ||
| "40": "1", | ||
| "41": "1", | ||
| "42": "1", | ||
| "43": "1", | ||
| "44": "1", | ||
| "45": "1", | ||
| "46": "5", | ||
| "47": "1", | ||
| "48": "7", | ||
| "49": "1", | ||
| "50": "1", | ||
| "51": "1", | ||
| "52": "1", | ||
| "53": "1", | ||
| "54": "1", | ||
| "55": "1", | ||
| "56": "1", | ||
| "57": "1", | ||
| "58": "1", | ||
| "59": "1", | ||
| "60": "1", | ||
| "61": "1", | ||
| "62": "1", | ||
| "63": "1" | ||
| }, | ||
| "AZURE_TUNNEL": { | ||
| "0" : "1", | ||
| "1" : "1", | ||
| "2" : "1", | ||
| "3" : "3", | ||
| "4" : "4", | ||
| "5" : "1", | ||
| "6" : "1", | ||
| "7" : "1", | ||
| "8" : "0", | ||
| "9" : "1", | ||
| "10": "1", | ||
| "11": "1", | ||
| "12": "1", | ||
| "13": "1", | ||
| "14": "1", | ||
| "15": "1", | ||
| "16": "1", | ||
| "17": "1", | ||
| "18": "1", | ||
| "19": "1", | ||
| "20": "1", | ||
| "21": "1", | ||
| "22": "1", | ||
| "23": "1", | ||
| "24": "1", | ||
| "25": "1", | ||
| "26": "1", | ||
| "27": "1", | ||
| "28": "1", | ||
| "29": "1", | ||
| "30": "1", | ||
| "31": "1", | ||
| "32": "1", | ||
| "33": "8", | ||
| "34": "1", | ||
| "35": "1", | ||
| "36": "1", | ||
| "37": "1", | ||
| "38": "1", | ||
| "39": "1", | ||
| "40": "1", | ||
| "41": "1", | ||
| "42": "1", | ||
| "43": "1", | ||
| "44": "1", | ||
| "45": "1", | ||
| "46": "5", | ||
| "47": "1", | ||
| "48": "7", | ||
| "49": "1", | ||
| "50": "1", | ||
| "51": "1", | ||
| "52": "1", | ||
| "53": "1", | ||
| "54": "1", | ||
| "55": "1", | ||
| "56": "1", | ||
| "57": "1", | ||
| "58": "1", | ||
| "59": "1", | ||
| "60": "1", | ||
| "61": "1", | ||
| "62": "1", | ||
| "63": "1" | ||
| } | ||
| }, | ||
| {%- endmacro %} | ||
| {%- macro generate_tc_to_pg_map() %} | ||
| "TC_TO_PRIORITY_GROUP_MAP": { | ||
| "AZURE": { | ||
| "0": "0", | ||
| "1": "0", | ||
| "2": "2", | ||
| "3": "3", | ||
| "4": "4", | ||
| "5": "0", | ||
| "6": "6", | ||
| "7": "0", | ||
| "8": "0" | ||
| }, | ||
| "AZURE_TUNNEL": { | ||
| "0": "0", | ||
| "1": "0", | ||
| "2": "0", | ||
| "3": "2", | ||
| "4": "6", | ||
| "5": "0", | ||
| "6": "0", | ||
| "7": "0", | ||
| "8": "0" | ||
| } | ||
| }, | ||
| {%- endmacro %} | ||
| {%- macro generate_tc_to_queue_map() %} | ||
| "TC_TO_QUEUE_MAP": { | ||
| "AZURE": { | ||
| "0": "0", | ||
| "1": "1", | ||
| "2": "1", | ||
| "3": "3", | ||
| "4": "4", | ||
| "5": "5", | ||
| "6": "1", | ||
| "7": "7", | ||
| "8": "1" | ||
| }, | ||
| "AZURE_UPLINK": { | ||
| "0": "0", | ||
| "1": "1", | ||
| "2": "2", | ||
| "3": "3", | ||
| "4": "4", | ||
| "5": "5", | ||
| "6": "6", | ||
| "7": "7", | ||
| "8": "1" | ||
| }, | ||
| "AZURE_TUNNEL": { | ||
| "0": "0", | ||
| "1": "1", | ||
| "2": "1", | ||
| "3": "2", | ||
| "4": "6", | ||
| "5": "5", | ||
| "6": "1", | ||
| "7": "7", | ||
| "8": "1" | ||
| } | ||
| }, | ||
| {%- endmacro %} | ||
| {%- macro generate_tc_to_dscp_map() %} | ||
| "TC_TO_DSCP_MAP": { | ||
| "AZURE_TUNNEL": { | ||
| "0": "8", | ||
| "1": "0", | ||
| "2": "0", | ||
| "3": "2", | ||
| "4": "6", | ||
| "5": "46", | ||
| "6": "0", | ||
| "7": "48", | ||
| "8": "33" | ||
| } | ||
| }, | ||
| {%- endmacro %} | ||
| {% endif %} | ||
| {%- include 'qos_config.j2' %} |
Oops, something went wrong.
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.
this PR looks the same https://github.com/sonic-net/sonic-buildimage/pull/22117/files. Not sure if I missed anything.
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 was not aware of the other change. Then this one could be closed. Thanks.