Skip to content

Commit 145b8b9

Browse files
DavidZagurymssonicbld
authored andcommitted
[Mellanox] Support SKU Mellanox-SN5600-V256 (#18926)
- Why I did it Support Mellanox-SN5600-V256 - How I did it Add relevant files to support the new SKU - How to verify it Regression test
1 parent d651ac6 commit 145b8b9

12 files changed

+1840
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../x86_64-mlnx_msn2700-r0/ACS-MSN2700/buffers.json.j2
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../x86_64-mlnx_msn2700-r0/Mellanox-SN2700-D48C8/buffers_defaults_objects.j2
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{#
2+
Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES.
3+
Apache-2.0
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
#}
17+
{% set default_cable = '300m' %}
18+
{% set ingress_lossless_pool_size = '73684992' %}
19+
{% set ingress_lossless_pool_xoff = '60293120' %}
20+
{% set egress_lossless_pool_size = '158229504' %}
21+
{% set egress_lossy_pool_size = '73684992' %}
22+
23+
{% import 'buffers_defaults_objects.j2' as defs with context %}
24+
25+
{%- macro generate_buffer_pool_and_profiles_with_inactive_ports(port_names_inactive) %}
26+
{{ defs.generate_buffer_pool_and_profiles_with_inactive_ports(port_names_inactive) }}
27+
{%- endmacro %}
28+
29+
{%- macro generate_profile_lists_with_inactive_ports(port_names_active, port_names_inactive) %}
30+
{{ defs.generate_profile_lists(port_names_active, port_names_inactive) }}
31+
{%- endmacro %}
32+
33+
{%- macro generate_queue_buffers_with_extra_lossless_queues_with_inactive_ports(port_names_active, port_names_extra_queues, port_names_inactive) %}
34+
{{ defs.generate_queue_buffers_with_extra_lossless_queues(port_names_active, port_names_extra_queues, port_names_inactive) }}
35+
{%- endmacro %}
36+
37+
{%- macro generate_queue_buffers_with_inactive_ports(port_names_active, port_names_inactive) %}
38+
{{ defs.generate_queue_buffers(port_names_active, port_names_inactive) }}
39+
{%- endmacro %}
40+
41+
{%- macro generate_pg_profiles_with_extra_lossless_pgs_with_inactive_ports(port_names_active, port_names_extra_pgs, port_names_inactive) %}
42+
{{ defs.generate_pg_profiles_with_extra_lossless_pgs(port_names_active, port_names_extra_pgs, port_names_inactive) }}
43+
{%- endmacro %}
44+
45+
{%- macro generate_pg_profiles_with_inactive_ports(port_names_active, port_names_inactive) %}
46+
{{ defs.generate_pg_profiles(port_names_active, port_names_inactive) }}
47+
{%- endmacro %}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{#
2+
Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES.
3+
Apache-2.0
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
#}
17+
{% set default_cable = '300m' %}
18+
{% set ingress_lossless_pool_size = '73684992' %}
19+
{% set ingress_lossless_pool_xoff = '60293120' %}
20+
{% set egress_lossless_pool_size = '158229504' %}
21+
{% set egress_lossy_pool_size = '73684992' %}
22+
23+
{% import 'buffers_defaults_objects.j2' as defs with context %}
24+
25+
{%- macro generate_buffer_pool_and_profiles_with_inactive_ports(port_names_inactive) %}
26+
{{ defs.generate_buffer_pool_and_profiles_with_inactive_ports(port_names_inactive) }}
27+
{%- endmacro %}
28+
29+
{%- macro generate_profile_lists_with_inactive_ports(port_names_active, port_names_inactive) %}
30+
{{ defs.generate_profile_lists(port_names_active, port_names_inactive) }}
31+
{%- endmacro %}
32+
33+
{%- macro generate_queue_buffers_with_extra_lossless_queues_with_inactive_ports(port_names_active, port_names_extra_queues, port_names_inactive) %}
34+
{{ defs.generate_queue_buffers_with_extra_lossless_queues(port_names_active, port_names_extra_queues, port_names_inactive) }}
35+
{%- endmacro %}
36+
37+
{%- macro generate_queue_buffers_with_inactive_ports(port_names_active, port_names_inactive) %}
38+
{{ defs.generate_queue_buffers(port_names_active, port_names_inactive) }}
39+
{%- endmacro %}
40+
41+
{%- macro generate_pg_profiles_with_extra_lossless_pgs_with_inactive_ports(port_names_active, port_names_extra_pgs, port_names_inactive) %}
42+
{{ defs.generate_pg_profiles_with_extra_lossless_pgs(port_names_active, port_names_extra_pgs, port_names_inactive) }}
43+
{%- endmacro %}
44+
45+
{%- macro generate_pg_profiles_with_inactive_ports(port_names_active, port_names_inactive) %}
46+
{{ defs.generate_pg_profiles(port_names_active, port_names_inactive) }}
47+
{%- endmacro %}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{#
2+
Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES.
3+
Apache-2.0
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
Unless required by applicable law or agreed to in writing, software
9+
distributed under the License is distributed on an "AS IS" BASIS,
10+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
See the License for the specific language governing permissions and
12+
limitations under the License.
13+
#}
14+
{%- set default_topo = 't0' %}
15+
{%- set dynamic_mode = 'true' %}
16+
{%- include 'buffers_config.j2' %}
Lines changed: 7 additions & 0 deletions
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)