Skip to content

Commit 316d87b

Browse files
noaOrMlnxram25794
authored andcommitted
[Mellanox] Add SPC5 SN5640 platform, Mellanox-SN5640-C512S2,Mellanox-SN5640-C448O16 SKUs (sonic-net#21770)
- Why I did it To support new Mellanox platform and SKUs - How I did it Add and modified relevant files to support new platform and SKUs - How to verify it Install supporting image on SN5640 Mellanox switch, deploy one of the SKUs
1 parent 01ce867 commit 316d87b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+9625
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../x86_64-mlnx_msn2700-r0/ACS-MSN2700/buffers.json.j2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../x86_64-nvidia_sn5600-r0/Mellanox-SN5600-C256S1/buffers_defaults_objects.j2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{#
2+
SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES
3+
Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
4+
Apache-2.0
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
#}
18+
{% set default_cable = '0m' %}
19+
{%-set ports2cable = {
20+
'torrouter_server' : '0m',
21+
'leafrouter_torrouter' : '0m',
22+
'spinerouter_leafrouter' : '0m'
23+
}
24+
-%}
25+
{% set ingress_lossless_pool_size = '108270592' %}
26+
{% set ingress_lossless_pool_xoff = '0' %}
27+
{% set egress_lossless_pool_size = '136209408' %}
28+
{% set egress_lossy_pool_size = '108270592' %}
29+
30+
{% import 'buffers_defaults_objects.j2' as defs with context %}
31+
32+
{%- macro generate_buffer_pool_and_profiles_with_inactive_ports(port_names_inactive) %}
33+
{{ defs.generate_buffer_pool_and_profiles_with_inactive_ports(port_names_inactive) }}
34+
{%- endmacro %}
35+
36+
{%- macro generate_profile_lists_with_inactive_ports(port_names_active, port_names_inactive) %}
37+
{{ defs.generate_profile_lists(port_names_active, port_names_inactive) }}
38+
{%- endmacro %}
39+
40+
{%- macro generate_queue_buffers_with_extra_lossless_queues_with_inactive_ports(port_names_active, port_names_extra_queues, port_names_inactive) %}
41+
{{ defs.generate_queue_buffers_with_extra_lossless_queues(port_names_active, port_names_extra_queues, port_names_inactive) }}
42+
{%- endmacro %}
43+
44+
{%- macro generate_queue_buffers_with_inactive_ports(port_names_active, port_names_inactive) %}
45+
{{ defs.generate_queue_buffers(port_names_active, port_names_inactive) }}
46+
{%- endmacro %}
47+
48+
{%- macro generate_pg_profiles_with_extra_lossless_pgs_with_inactive_ports(port_names_active, port_names_extra_pgs, port_names_inactive) %}
49+
{{ defs.generate_pg_profiles_with_extra_lossless_pgs(port_names_active, port_names_extra_pgs, port_names_inactive) }}
50+
{%- endmacro %}
51+
52+
{%- macro generate_pg_profiles_with_inactive_ports(port_names_active, port_names_inactive) %}
53+
{{ defs.generate_pg_profiles(port_names_active, port_names_inactive) }}
54+
{%- endmacro %}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{#
2+
SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES
3+
Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
4+
Apache-2.0
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
#}
18+
{% set default_cable = '0m' %}
19+
{%-set ports2cable = {
20+
'torrouter_server' : '0m',
21+
'leafrouter_torrouter' : '0m',
22+
'spinerouter_leafrouter' : '0m'
23+
}
24+
-%}
25+
{% set ingress_lossless_pool_size = '108270592' %}
26+
{% set ingress_lossless_pool_xoff = '0' %}
27+
{% set egress_lossless_pool_size = '136209408' %}
28+
{% set egress_lossy_pool_size = '108270592' %}
29+
30+
{% import 'buffers_defaults_objects.j2' as defs with context %}
31+
32+
{%- macro generate_buffer_pool_and_profiles_with_inactive_ports(port_names_inactive) %}
33+
{{ defs.generate_buffer_pool_and_profiles_with_inactive_ports(port_names_inactive) }}
34+
{%- endmacro %}
35+
36+
{%- macro generate_profile_lists_with_inactive_ports(port_names_active, port_names_inactive) %}
37+
{{ defs.generate_profile_lists(port_names_active, port_names_inactive) }}
38+
{%- endmacro %}
39+
40+
{%- macro generate_queue_buffers_with_extra_lossless_queues_with_inactive_ports(port_names_active, port_names_extra_queues, port_names_inactive) %}
41+
{{ defs.generate_queue_buffers_with_extra_lossless_queues(port_names_active, port_names_extra_queues, port_names_inactive) }}
42+
{%- endmacro %}
43+
44+
{%- macro generate_queue_buffers_with_inactive_ports(port_names_active, port_names_inactive) %}
45+
{{ defs.generate_queue_buffers(port_names_active, port_names_inactive) }}
46+
{%- endmacro %}
47+
48+
{%- macro generate_pg_profiles_with_extra_lossless_pgs_with_inactive_ports(port_names_active, port_names_extra_pgs, port_names_inactive) %}
49+
{{ defs.generate_pg_profiles_with_extra_lossless_pgs(port_names_active, port_names_extra_pgs, port_names_inactive) }}
50+
{%- endmacro %}
51+
52+
{%- macro generate_pg_profiles_with_inactive_ports(port_names_active, port_names_inactive) %}
53+
{{ defs.generate_pg_profiles(port_names_active, port_names_inactive) }}
54+
{%- endmacro %}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../x86_64-mlnx_msn2700-r0/ACS-MSN2700/buffers_dynamic.json.j2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"DEVICE_METADATA": {
3+
"localhost": {
4+
"create_only_config_db_buffers": "true"
5+
}
6+
}
7+
}

0 commit comments

Comments
 (0)