Skip to content
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

[202012] [Mellanox] [SKU] Mellanox-SN4700-V48C32 SKU added #31

Closed
wants to merge 9 commits into from
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

{#
Copyright (c) 2022 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_topo = 't1' %}
{%- include 'buffers_config.j2' %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

{#
Copyright (c) 2022 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 = '5m' %}
{% set ingress_lossless_pool_size = '50208768' %}
{% set ingress_lossless_pool_xoff = '1662976' %}
{% set egress_lossless_pool_size = '60817392' %}
{% set egress_lossy_pool_size = '50208768' %}

{% 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,46 @@

{#
Copyright (c) 2022 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 ports2cable = {
'torrouter_server' : '5m',
'leafrouter_torrouter' : '300m',
'spinerouter_leafrouter' : '1500m'
}
-%}
{% set ingress_lossless_pool_size = '46780416' %}
{% set ingress_lossless_pool_xoff = '5091328' %}
{% set egress_lossless_pool_size = '60817392' %}
{% set egress_lossy_pool_size = '46780416' %}

{% 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,17 @@

{#
Copyright (c) 2022 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_topo = 't1' %}
{%- set dynamic_mode = 'true' %}
{%- include 'buffers_config.j2' %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# name lanes alias index speed
Ethernet0 0,1,2,3 etp1a 1 200000
Ethernet4 4,5,6,7 etp1b 1 200000
Ethernet8 8,9,10,11 etp2a 2 200000
Ethernet12 12,13,14,15 etp2b 2 200000
Ethernet16 16,17,18,19 etp3a 3 200000
Ethernet20 20,21,22,23 etp3b 3 200000
Ethernet24 24,25,26,27 etp4a 4 200000
Ethernet28 28,29,30,31 etp4b 4 200000
Ethernet32 32,33,34,35 etp5a 5 200000
Ethernet36 36,37,38,39 etp5b 5 200000
Ethernet40 40,41,42,43 etp6a 6 200000
Ethernet44 44,45,46,47 etp6b 6 200000
Ethernet48 48,49,50,51 etp7a 7 200000
Ethernet52 52,53,54,55 etp7b 7 200000
Ethernet56 56,57,58,59 etp8a 8 200000
Ethernet60 60,61,62,63 etp8b 8 200000
Ethernet64 64,65,66,67 etp9a 9 200000
Ethernet68 68,69,70,71 etp9b 9 200000
Ethernet72 72,73,74,75 etp10a 10 200000
Ethernet76 76,77,78,79 etp10b 10 200000
Ethernet80 80,81,82,83 etp11a 11 200000
Ethernet84 84,85,86,87 etp11b 11 200000
Ethernet88 88,89,90,91 etp12a 12 200000
Ethernet92 92,93,94,95 etp12b 12 200000
Ethernet96 96,97,98,99 etp13a 13 200000
Ethernet100 100,101,102,103 etp13b 13 200000
Ethernet104 104,105,106,107 etp14a 14 200000
Ethernet108 108,109,110,111 etp14b 14 200000
Ethernet112 112,113,114,115 etp15a 15 200000
Ethernet116 116,117,118,119 etp15b 15 200000
Ethernet120 120,121,122,123 etp16a 16 200000
Ethernet124 124,125,126,127 etp16b 16 200000
Ethernet128 128,129,130,131 etp17a 17 200000
Ethernet132 132,133,134,135 etp17b 17 200000
Ethernet136 136,137,138,139 etp18a 18 200000
Ethernet140 140,141,142,143 etp18b 18 200000
Ethernet144 144,145,146,147 etp19a 19 200000
Ethernet148 148,149,150,151 etp19b 19 200000
Ethernet152 152,153,154,155 etp20a 20 200000
Ethernet156 156,157,158,159 etp20b 20 200000
Ethernet160 160,161,162,163 etp21a 21 200000
Ethernet164 164,165,166,167 etp21b 21 200000
Ethernet168 168,169,170,171 etp22a 22 200000
Ethernet172 172,173,174,175 etp22b 22 200000
Ethernet176 176,177,178,179 etp23a 23 200000
Ethernet180 180,181,182,183 etp23b 23 200000
Ethernet184 184,185,186,187 etp24a 24 200000
Ethernet188 188,189,190,191 etp24b 24 200000
Ethernet192 192,193 etp25a 25 100000
Ethernet194 194,195 etp25b 25 100000
Ethernet196 196,197 etp25c 25 100000
Ethernet198 198,199 etp25d 25 100000
Ethernet200 200,201 etp26a 26 100000
Ethernet202 202,203 etp26b 26 100000
Ethernet204 204,205 etp26c 26 100000
Ethernet206 206,207 etp26d 26 100000
Ethernet208 208,209 etp27a 27 100000
Ethernet210 210,211 etp27b 27 100000
Ethernet212 212,213 etp27c 27 100000
Ethernet214 214,215 etp27d 27 100000
Ethernet216 216,217 etp28a 28 100000
Ethernet218 218,219 etp28b 28 100000
Ethernet220 220,221 etp28c 28 100000
Ethernet222 222,223 etp28d 28 100000
Ethernet224 224,225 etp29a 29 100000
Ethernet226 226,227 etp29b 29 100000
Ethernet228 228,229 etp29c 29 100000
Ethernet230 230,231 etp29d 29 100000
Ethernet232 232,233 etp30a 30 100000
Ethernet234 234,235 etp30b 30 100000
Ethernet236 236,237 etp30c 30 100000
Ethernet238 238,239 etp30d 30 100000
Ethernet240 240,241 etp31a 31 100000
Ethernet242 242,243 etp31b 31 100000
Ethernet244 244,245 etp31c 31 100000
Ethernet246 246,247 etp31d 31 100000
Ethernet248 248,249 etp32a 32 100000
Ethernet250 250,251 etp32b 32 100000
Ethernet252 252,253 etp32c 32 100000
Ethernet254 254,255 etp32d 32 100000
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_4700_32x100g_48x200g.xml
SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps
SAI_DUMP_STORE_AMOUNT=10
Loading