forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add SN5640 SIMX platform with default SKU #32
Closed
Closed
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
be36ad2
Add SN5640 SIMX platform with default SKU
noaOrMlnx a2cf203
Add t1 to default_sku file
noaOrMlnx 70c8a69
Fix issues in platform.jsona nd hwsku.json
noaOrMlnx 80fd320
Update buffer files for SN5640
noaOrMlnx 3c5e828
Updated SN5640 buffers files
noaOrMlnx 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
1 change: 1 addition & 0 deletions
1
device/mellanox/x86_64-nvidia_sn5640_simx-r0/ACS-SN5640/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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../../x86_64-mlnx_msn2700-r0/ACS-MSN2700/buffers.json.j2 | ||
128 changes: 128 additions & 0 deletions
128
device/mellanox/x86_64-nvidia_sn5640_simx-r0/ACS-SN5640/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 | ||||||
---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,128 @@ | ||||||||
{# | ||||||||
Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. | ||||||||
Apache-2.0 | ||||||||
|
||||||||
Licensed under the Apache License, Version 2.0 (the "License"); | ||||||||
you may not use this file except in compliance with the License. | ||||||||
You may obtain a copy of the License at | ||||||||
|
||||||||
http://www.apache.org/licenses/LICENSE-2.0 | ||||||||
|
||||||||
Unless required by applicable law or agreed to in writing, software | ||||||||
distributed under the License is distributed on an "AS IS" BASIS, | ||||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||||||
See the License for the specific language governing permissions and | ||||||||
limitations under the License. | ||||||||
#} | ||||||||
{% set default_cable = '40m' %} | ||||||||
{% set ingress_lossless_pool_size = '2359296' %} | ||||||||
{% set ingress_lossy_pool_size = '2359296' %} | ||||||||
{% set egress_lossless_pool_size = '136209408' %} | ||||||||
{% set egress_lossy_pool_size = '2359296' %} | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
||||||||
{%- 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)) %}{%- endif %} | ||||||||
{%- endfor %} | ||||||||
{%- endmacro %} | ||||||||
|
||||||||
{%- macro generate_buffer_pool_and_profiles() %} | ||||||||
"BUFFER_POOL": { | ||||||||
"ingress_lossless_pool": { | ||||||||
{%- if dynamic_mode is not defined %} | ||||||||
"size": "{{ ingress_lossless_pool_size }}", | ||||||||
{%- endif %} | ||||||||
"type": "ingress", | ||||||||
"mode": "dynamic" | ||||||||
}, | ||||||||
"ingress_lossy_pool": { | ||||||||
{%- if dynamic_mode is not defined %} | ||||||||
"size": "{{ ingress_lossy_pool_size }}", | ||||||||
{%- endif %} | ||||||||
"type": "ingress", | ||||||||
"mode": "dynamic" | ||||||||
}, | ||||||||
"egress_lossless_pool": { | ||||||||
"size": "{{ egress_lossless_pool_size }}", | ||||||||
"type": "egress", | ||||||||
"mode": "dynamic" | ||||||||
}, | ||||||||
"egress_lossy_pool": { | ||||||||
{%- if dynamic_mode is not defined %} | ||||||||
"size": "{{ egress_lossy_pool_size }}", | ||||||||
{%- endif %} | ||||||||
"type": "egress", | ||||||||
"mode": "dynamic" | ||||||||
} | ||||||||
}, | ||||||||
"BUFFER_PROFILE": { | ||||||||
"ingress_lossless_profile": { | ||||||||
"pool":"ingress_lossless_pool", | ||||||||
"size":"0", | ||||||||
"dynamic_th":"7" | ||||||||
}, | ||||||||
"ingress_lossy_profile": { | ||||||||
"pool":"ingress_lossy_pool", | ||||||||
"size":"0", | ||||||||
"dynamic_th":"3" | ||||||||
}, | ||||||||
"egress_lossless_profile": { | ||||||||
"pool":"egress_lossless_pool", | ||||||||
"size":"0", | ||||||||
"dynamic_th":"7" | ||||||||
}, | ||||||||
"egress_lossy_profile": { | ||||||||
"pool":"egress_lossy_pool", | ||||||||
"size":"9216", | ||||||||
"dynamic_th":"7" | ||||||||
}, | ||||||||
"q_lossy_profile": { | ||||||||
"pool":"egress_lossy_pool", | ||||||||
"size":"0", | ||||||||
"dynamic_th":"3" | ||||||||
} | ||||||||
}, | ||||||||
{%- endmacro %} | ||||||||
|
||||||||
{%- macro generate_profile_lists(port_names) %} | ||||||||
"BUFFER_PORT_INGRESS_PROFILE_LIST": { | ||||||||
{% for port in port_names.split(',') %} | ||||||||
"{{ port }}": { | ||||||||
"profile_list" : "ingress_lossless_profile,ingress_lossy_profile" | ||||||||
}{% if not loop.last %},{% endif %} | ||||||||
|
||||||||
{% endfor %} | ||||||||
}, | ||||||||
"BUFFER_PORT_EGRESS_PROFILE_LIST": { | ||||||||
{% for port in port_names.split(',') %} | ||||||||
"{{ port }}": { | ||||||||
"profile_list" : "egress_lossless_profile,egress_lossy_profile" | ||||||||
}{% if not loop.last %},{% endif %} | ||||||||
|
||||||||
{% endfor %} | ||||||||
} | ||||||||
{%- endmacro %} | ||||||||
|
||||||||
{%- macro generate_queue_buffers(port_names) %} | ||||||||
"BUFFER_QUEUE": { | ||||||||
{% for port in port_names.split(',') %} | ||||||||
"{{ port }}|3-4": { | ||||||||
"profile" : "egress_lossless_profile" | ||||||||
}, | ||||||||
{% endfor %} | ||||||||
{% for port in port_names.split(',') %} | ||||||||
"{{ port }}|0-2": { | ||||||||
"profile" : "q_lossy_profile" | ||||||||
}, | ||||||||
{% endfor %} | ||||||||
{% for port in port_names.split(',') %} | ||||||||
"{{ port }}|5-6": { | ||||||||
"profile" : "q_lossy_profile" | ||||||||
}{% if not loop.last %},{% endif %} | ||||||||
|
||||||||
{% endfor %} | ||||||||
} | ||||||||
{%- endmacro %} | ||||||||
|
||||||||
|
128 changes: 128 additions & 0 deletions
128
device/mellanox/x86_64-nvidia_sn5640_simx-r0/ACS-SN5640/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 | ||||||
---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,128 @@ | ||||||||
{# | ||||||||
Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. | ||||||||
Apache-2.0 | ||||||||
|
||||||||
Licensed under the Apache License, Version 2.0 (the "License"); | ||||||||
you may not use this file except in compliance with the License. | ||||||||
You may obtain a copy of the License at | ||||||||
|
||||||||
http://www.apache.org/licenses/LICENSE-2.0 | ||||||||
|
||||||||
Unless required by applicable law or agreed to in writing, software | ||||||||
distributed under the License is distributed on an "AS IS" BASIS, | ||||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||||||
See the License for the specific language governing permissions and | ||||||||
limitations under the License. | ||||||||
#} | ||||||||
{% set default_cable = '300m' %} | ||||||||
{% set ingress_lossless_pool_size = '18874368' %} | ||||||||
{% set ingress_lossy_pool_size = '71459840' %} | ||||||||
{% set egress_lossless_pool_size = '136209408' %} | ||||||||
{% set egress_lossy_pool_size = '71459840' %} | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
|
||||||||
{%- 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)) %}{%- endif %} | ||||||||
{%- endfor %} | ||||||||
{%- endmacro %} | ||||||||
|
||||||||
{%- macro generate_buffer_pool_and_profiles() %} | ||||||||
"BUFFER_POOL": { | ||||||||
"ingress_lossless_pool": { | ||||||||
{%- if dynamic_mode is not defined %} | ||||||||
"size": "{{ ingress_lossless_pool_size }}", | ||||||||
{%- endif %} | ||||||||
"type": "ingress", | ||||||||
"mode": "dynamic" | ||||||||
}, | ||||||||
"ingress_lossy_pool": { | ||||||||
{%- if dynamic_mode is not defined %} | ||||||||
"size": "{{ ingress_lossy_pool_size }}", | ||||||||
{%- endif %} | ||||||||
"type": "ingress", | ||||||||
"mode": "dynamic" | ||||||||
}, | ||||||||
"egress_lossless_pool": { | ||||||||
"size": "{{ egress_lossless_pool_size }}", | ||||||||
"type": "egress", | ||||||||
"mode": "dynamic" | ||||||||
}, | ||||||||
"egress_lossy_pool": { | ||||||||
{%- if dynamic_mode is not defined %} | ||||||||
"size": "{{ egress_lossy_pool_size }}", | ||||||||
{%- endif %} | ||||||||
"type": "egress", | ||||||||
"mode": "dynamic" | ||||||||
} | ||||||||
}, | ||||||||
"BUFFER_PROFILE": { | ||||||||
"ingress_lossless_profile": { | ||||||||
"pool":"ingress_lossless_pool", | ||||||||
"size":"0", | ||||||||
"dynamic_th":"7" | ||||||||
}, | ||||||||
"ingress_lossy_profile": { | ||||||||
"pool":"ingress_lossy_pool", | ||||||||
"size":"0", | ||||||||
"dynamic_th":"3" | ||||||||
}, | ||||||||
"egress_lossless_profile": { | ||||||||
"pool":"egress_lossless_pool", | ||||||||
"size":"0", | ||||||||
"dynamic_th":"7" | ||||||||
}, | ||||||||
"egress_lossy_profile": { | ||||||||
"pool":"egress_lossy_pool", | ||||||||
"size":"9216", | ||||||||
"dynamic_th":"7" | ||||||||
}, | ||||||||
"q_lossy_profile": { | ||||||||
"pool":"egress_lossy_pool", | ||||||||
"size":"0", | ||||||||
"dynamic_th":"3" | ||||||||
} | ||||||||
}, | ||||||||
{%- endmacro %} | ||||||||
|
||||||||
{%- macro generate_profile_lists(port_names) %} | ||||||||
"BUFFER_PORT_INGRESS_PROFILE_LIST": { | ||||||||
{% for port in port_names.split(',') %} | ||||||||
"{{ port }}": { | ||||||||
"profile_list" : "ingress_lossless_profile,ingress_lossy_profile" | ||||||||
}{% if not loop.last %},{% endif %} | ||||||||
|
||||||||
{% endfor %} | ||||||||
}, | ||||||||
"BUFFER_PORT_EGRESS_PROFILE_LIST": { | ||||||||
{% for port in port_names.split(',') %} | ||||||||
"{{ port }}": { | ||||||||
"profile_list" : "egress_lossless_profile,egress_lossy_profile" | ||||||||
}{% if not loop.last %},{% endif %} | ||||||||
|
||||||||
{% endfor %} | ||||||||
} | ||||||||
{%- endmacro %} | ||||||||
|
||||||||
{%- macro generate_queue_buffers(port_names) %} | ||||||||
"BUFFER_QUEUE": { | ||||||||
{% for port in port_names.split(',') %} | ||||||||
"{{ port }}|3-4": { | ||||||||
"profile" : "egress_lossless_profile" | ||||||||
}, | ||||||||
{% endfor %} | ||||||||
{% for port in port_names.split(',') %} | ||||||||
"{{ port }}|0-2": { | ||||||||
"profile" : "q_lossy_profile" | ||||||||
}, | ||||||||
{% endfor %} | ||||||||
{% for port in port_names.split(',') %} | ||||||||
"{{ port }}|5-6": { | ||||||||
"profile" : "q_lossy_profile" | ||||||||
}{% if not loop.last %},{% endif %} | ||||||||
|
||||||||
{% endfor %} | ||||||||
} | ||||||||
{%- endmacro %} | ||||||||
|
||||||||
|
1 change: 1 addition & 0 deletions
1
device/mellanox/x86_64-nvidia_sn5640_simx-r0/ACS-SN5640/buffers_dynamic.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../../x86_64-mlnx_msn2700-r0/ACS-MSN2700/buffers_dynamic.json.j2 |
7 changes: 7 additions & 0 deletions
7
device/mellanox/x86_64-nvidia_sn5640_simx-r0/ACS-SN5640/create_only_config_db_buffers.json
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"DEVICE_METADATA": { | ||
"localhost": { | ||
"create_only_config_db_buffers": "true" | ||
} | ||
} | ||
} |
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.
../../x86_64-mlnx_msn2700-r0/Mellanox-SN2700-D48C8/buffers.json.j2
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.
we need to use templates from
Mellanox-SN2700-D48C8