Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{#
SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES
Copyright (c) 2020-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
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 = '5m' %}
{% set ingress_lossless_pool_size = '26451968' %}
{% set ingress_lossy_pool_size = '26451968' %}
{% set egress_lossless_pool_size = '60817392' %}
{% set egress_lossy_pool_size = '26451968' %}

{% import 'buffers_defaults_objects.j2' as defs with context %}

{%- macro generate_buffer_pool_and_profiles_with_inactive_ports(port_names_inactive) %}
{{ defs.generate_buffer_pool_and_profiles_with_inactive_ports(port_names_inactive) }}
{%- endmacro %}

{%- macro generate_profile_lists_with_inactive_ports(port_names_active, port_names_inactive) %}
{{ defs.generate_profile_lists(port_names_active, port_names_inactive) }}
{%- endmacro %}

{%- macro generate_queue_buffers_with_inactive_ports(port_names_active, port_names_inactive) %}
{{ defs.generate_queue_buffers(port_names_active, port_names_inactive) }}
{%- endmacro %}

{%- macro generate_pg_profiles_with_inactive_ports(port_names_active, port_names_inactive) %}
{{ defs.generate_pg_profiles(port_names_active, port_names_inactive) }}
{%- endmacro %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{#
SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES
Copyright (c) 2020-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
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 = '5m' %}
{% set ingress_lossless_pool_size = '20627456' %}
{% set ingress_lossy_pool_size = '20627456' %}
{% set egress_lossless_pool_size = '60817392' %}
{% set egress_lossy_pool_size = '20627456' %}

{% import 'buffers_defaults_objects.j2' as defs with context %}

{%- macro generate_buffer_pool_and_profiles_with_inactive_ports(port_names_inactive) %}
{{ defs.generate_buffer_pool_and_profiles_with_inactive_ports(port_names_inactive) }}
{%- endmacro %}

{%- macro generate_profile_lists_with_inactive_ports(port_names_active, port_names_inactive) %}
{{ defs.generate_profile_lists(port_names_active, port_names_inactive) }}
{%- endmacro %}

{%- macro generate_queue_buffers_with_inactive_ports(port_names_active, port_names_inactive) %}
{{ defs.generate_queue_buffers(port_names_active, port_names_inactive) }}
{%- endmacro %}

{%- macro generate_pg_profiles_with_inactive_ports(port_names_active, port_names_inactive) %}
{{ defs.generate_pg_profiles(port_names_active, port_names_inactive) }}
{%- endmacro %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"DEVICE_METADATA": {
"localhost": {
"create_only_config_db_buffers": "true"
}
}
}
100 changes: 100 additions & 0 deletions device/mellanox/x86_64-nvidia_sn4700d-r0/ACS-SN4700D/hwsku.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"interfaces": {
"Ethernet0": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
},
"Ethernet8": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
},
"Ethernet16": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
},
"Ethernet24": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
},
"Ethernet32": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
},
"Ethernet40": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
},
"Ethernet48": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
},
"Ethernet56": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
},
"Ethernet64": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
},
"Ethernet72": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
},
"Ethernet80": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
},
"Ethernet88": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
},
"Ethernet96": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
},
"Ethernet104": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
},
"Ethernet112": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
},
"Ethernet120": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
},
"Ethernet128": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
},
"Ethernet136": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
},
"Ethernet144": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
},
"Ethernet152": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
},
"Ethernet160": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
},
"Ethernet168": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
},
"Ethernet176": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
},
"Ethernet184": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
},
"Ethernet192": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
},
"Ethernet200": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
},
"Ethernet208": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
},
"Ethernet216": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
},
"Ethernet224": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
},
"Ethernet232": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
},
"Ethernet240": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
},
"Ethernet248": {
"default_brkout_mode": "1x400G[200G,100G,50G,40G,25G,10G,1G]"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
##
## SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES
## Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
## 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.
##
# PG lossless profiles.
# speed cable size xon xoff threshold
10000 5m 52224 19456 32768 0
25000 5m 52224 19456 32768 0
40000 5m 53248 19456 33792 0
50000 5m 53248 19456 33792 0
100000 5m 53248 19456 33792 0
200000 5m 55296 19456 35840 0
400000 5m 86016 37888 38912 0
10000 40m 53248 19456 33792 0
25000 40m 55296 19456 35840 0
40000 40m 57344 19456 37888 0
50000 40m 58368 19456 38912 0
100000 40m 63488 19456 44032 0
200000 40m 74752 19456 55296 0
400000 40m 124928 37888 77824 0
10000 300m 60416 19456 40960 0
25000 300m 73728 19456 54272 0
40000 300m 86016 19456 66560 0
50000 300m 95232 19456 75776 0
100000 300m 137216 19456 117760 0
200000 300m 223232 19456 203776 0
400000 300m 420864 37888 373760 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
##
## SPDX-FileCopyrightText: NVIDIA CORPORATION & AFFILIATES
## Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
## 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.
##
# name lanes alias index speed
Ethernet0 0,1,2,3,4,5,6,7 etp1 1 400000
Ethernet8 8,9,10,11,12,13,14,15 etp2 2 400000
Ethernet16 16,17,18,19,20,21,22,23 etp3 3 400000
Ethernet24 24,25,26,27,28,29,30,31 etp4 4 400000
Ethernet32 32,33,34,35,36,37,38,39 etp5 5 400000
Ethernet40 40,41,42,43,44,45,46,47 etp6 6 400000
Ethernet48 48,49,50,51,52,53,54,55 etp7 7 400000
Ethernet56 56,57,58,59,60,61,62,63 etp8 8 400000
Ethernet64 64,65,66,67,68,69,70,71 etp9 9 400000
Ethernet72 72,73,74,75,76,77,78,79 etp10 10 400000
Ethernet80 80,81,82,83,84,85,86,87 etp11 11 400000
Ethernet88 88,89,90,91,92,93,94,95 etp12 12 400000
Ethernet96 96,97,98,99,100,101,102,103 etp13 13 400000
Ethernet104 104,105,106,107,108,109,110,111 etp14 14 400000
Ethernet112 112,113,114,115,116,117,118,119 etp15 15 400000
Ethernet120 120,121,122,123,124,125,126,127 etp16 16 400000
Ethernet128 128,129,130,131,132,133,134,135 etp17 17 400000
Ethernet136 136,137,138,139,140,141,142,143 etp18 18 400000
Ethernet144 144,145,146,147,148,149,150,151 etp19 19 400000
Ethernet152 152,153,154,155,156,157,158,159 etp20 20 400000
Ethernet160 160,161,162,163,164,165,166,167 etp21 21 400000
Ethernet168 168,169,170,171,172,173,174,175 etp22 22 400000
Ethernet176 176,177,178,179,180,181,182,183 etp23 23 400000
Ethernet184 184,185,186,187,188,189,190,191 etp24 24 400000
Ethernet192 192,193,194,195,196,197,198,199 etp25 25 400000
Ethernet200 200,201,202,203,204,205,206,207 etp26 26 400000
Ethernet208 208,209,210,211,212,213,214,215 etp27 27 400000
Ethernet216 216,217,218,219,220,221,222,223 etp28 28 400000
Ethernet224 224,225,226,227,228,229,230,231 etp29 29 400000
Ethernet232 232,233,234,235,236,237,238,239 etp30 30 400000
Ethernet240 240,241,242,243,244,245,246,247 etp31 31 400000
Ethernet248 248,249,250,251,252,253,254,255 etp32 32 400000
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_4700d.xml
Loading