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

[Mellanox] Adding SKU Mellanox-SN5600-C256 #58

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
Changes from 8 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,47 @@
{#
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 = '118249472' %}
{% set ingress_lossless_pool_xoff = '15728640' %}
{% set egress_lossless_pool_size = '162027520' %}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this value is too large to be accepted by SDK. Let's use 158229504

{% set egress_lossy_pool_size = '118249472' %}

{% 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_extra_lossless_queues_with_inactive_ports(port_names_active, port_names_extra_queues, port_names_inactive) %}
{{ defs.generate_queue_buffers_with_extra_lossless_queues(port_names_active, port_names_extra_queues, 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_extra_lossless_pgs_with_inactive_ports(port_names_active, port_names_extra_pgs, port_names_inactive) %}
{{ defs.generate_pg_profiles_with_extra_lossless_pgs(port_names_active, port_names_extra_pgs, 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,47 @@
{#
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 = '137779200' %}
{% set ingress_lossless_pool_xoff = '10092544' %}
{% set egress_lossless_pool_size = '162027520' %}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use 158229504

{% set egress_lossy_pool_size = '137779200' %}

{% 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_extra_lossless_queues_with_inactive_ports(port_names_active, port_names_extra_queues, port_names_inactive) %}
{{ defs.generate_queue_buffers_with_extra_lossless_queues(port_names_active, port_names_extra_queues, 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_extra_lossless_pgs_with_inactive_ports(port_names_active, port_names_extra_pgs, port_names_inactive) %}
{{ defs.generate_pg_profiles_with_extra_lossless_pgs(port_names_active, port_names_extra_pgs, 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,16 @@
{#
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_topo = 't0' %}
{%- set dynamic_mode = 'true' %}
{%- include 'buffers_config.j2' %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"DEVICE_METADATA": {
"localhost": {
"create_only_config_db_buffers": "true"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,234 @@
{
"GLOBAL_MEDIA_SETTINGS": {
"1-64": {
"OSFP-8X-sm_media_interface": {
"speed:400GAUI-4-L": {
"pre3": {
"lane0": "0x00000000",
"lane1": "0x00000000",
"lane2": "0x00000000",
"lane3": "0x00000000",
"lane4": "0x00000000",
"lane5": "0x00000000",
"lane6": "0x00000000",
"lane7": "0x00000000"
},
"pre2": {
"lane0": "0x00000005",
"lane1": "0x00000005",
"lane2": "0x00000005",
"lane3": "0x00000005",
"lane4": "0x00000005",
"lane5": "0x00000005",
"lane6": "0x00000005",
"lane7": "0x00000005"
},
"pre1": {
"lane0": "0xfffffff1",
"lane1": "0xfffffff1",
"lane2": "0xfffffff1",
"lane3": "0xfffffff1",
"lane4": "0xfffffff1",
"lane5": "0xfffffff1",
"lane6": "0xfffffff1",
"lane7": "0xfffffff1"
},
"main": {
"lane0": "0x0000002b",
"lane1": "0x0000002b",
"lane2": "0x0000002b",
"lane3": "0x0000002b",
"lane4": "0x0000002b",
"lane5": "0x0000002b",
"lane6": "0x0000002b",
"lane7": "0x0000002b"
},
"post1": {
"lane0": "0x00000000",
"lane1": "0x00000000",
"lane2": "0x00000000",
"lane3": "0x00000000",
"lane4": "0x00000000",
"lane5": "0x00000000",
"lane6": "0x00000000",
"lane7": "0x00000000"
},
"idriver": {
"lane0": "0x00000032",
"lane1": "0x00000032",
"lane2": "0x00000032",
"lane3": "0x00000032",
"lane4": "0x00000032",
"lane5": "0x00000032",
"lane6": "0x00000032",
"lane7": "0x00000032"
}
},
"speed:400GAUI-4-S": {
"pre3": {
"lane0": "0x00000000",
"lane1": "0x00000000",
"lane2": "0x00000000",
"lane3": "0x00000000",
"lane4": "0x00000000",
"lane5": "0x00000000",
"lane6": "0x00000000",
"lane7": "0x00000000"
},
"pre2": {
"lane0": "0x00000005",
"lane1": "0x00000005",
"lane2": "0x00000005",
"lane3": "0x00000005",
"lane4": "0x00000005",
"lane5": "0x00000005",
"lane6": "0x00000005",
"lane7": "0x00000005"
},
"pre1": {
"lane0": "0xfffffff1",
"lane1": "0xfffffff1",
"lane2": "0xfffffff1",
"lane3": "0xfffffff1",
"lane4": "0xfffffff1",
"lane5": "0xfffffff1",
"lane6": "0xfffffff1",
"lane7": "0xfffffff1"
},
"main": {
"lane0": "0x0000002b",
"lane1": "0x0000002b",
"lane2": "0x0000002b",
"lane3": "0x0000002b",
"lane4": "0x0000002b",
"lane5": "0x0000002b",
"lane6": "0x0000002b",
"lane7": "0x0000002b"
},
"post1": {
"lane0": "0x00000000",
"lane1": "0x00000000",
"lane2": "0x00000000",
"lane3": "0x00000000",
"lane4": "0x00000000",
"lane5": "0x00000000",
"lane6": "0x00000000",
"lane7": "0x00000000"
},
"idriver": {
"lane0": "0x00000032",
"lane1": "0x00000032",
"lane2": "0x00000032",
"lane3": "0x00000032",
"lane4": "0x00000032",
"lane5": "0x00000032",
"lane6": "0x00000032",
"lane7": "0x00000032"
}
},
"speed:800G": {
"pre3": {
"lane0": "0x00000000",
"lane1": "0x00000000",
"lane2": "0x00000000",
"lane3": "0x00000000",
"lane4": "0x00000000",
"lane5": "0x00000000",
"lane6": "0x00000000",
"lane7": "0x00000000"
},
"pre2": {
"lane0": "0x00000005",
"lane1": "0x00000005",
"lane2": "0x00000005",
"lane3": "0x00000005",
"lane4": "0x00000005",
"lane5": "0x00000005",
"lane6": "0x00000005",
"lane7": "0x00000005"
},
"pre1": {
"lane0": "0xfffffff1",
"lane1": "0xfffffff1",
"lane2": "0xfffffff1",
"lane3": "0xfffffff1",
"lane4": "0xfffffff1",
"lane5": "0xfffffff1",
"lane6": "0xfffffff1",
"lane7": "0xfffffff1"
},
"main": {
"lane0": "0x0000002b",
"lane1": "0x0000002b",
"lane2": "0x0000002b",
"lane3": "0x0000002b",
"lane4": "0x0000002b",
"lane5": "0x0000002b",
"lane6": "0x0000002b",
"lane7": "0x0000002b"
},
"post1": {
"lane0": "0x00000000",
"lane1": "0x00000000",
"lane2": "0x00000000",
"lane3": "0x00000000",
"lane4": "0x00000000",
"lane5": "0x00000000",
"lane6": "0x00000000",
"lane7": "0x00000000"
},
"idriver": {
"lane0": "0x00000032",
"lane1": "0x00000032",
"lane2": "0x00000032",
"lane3": "0x00000032",
"lane4": "0x00000032",
"lane5": "0x00000032",
"lane6": "0x00000032",
"lane7": "0x00000032"
}
}
},
"OSFP-8X-nm_850_media_interface": {
"speed:200GAUI-4": {
"post1": {
"lane0": "0x00000000",
"lane1": "0x00000000",
"lane2": "0x00000000",
"lane3": "0x00000000"
},
"idriver": {
"lane0": "0x0000003f",
"lane1": "0x0000003f",
"lane2": "0x0000003f",
"lane3": "0x0000003f"
},
"main": {
"lane0": "0x0000003f",
"lane1": "0x0000003f",
"lane2": "0x0000003f",
"lane3": "0x0000003f"
},
"pre1": {
"lane0": "0x00000000",
"lane1": "0x00000000",
"lane2": "0x00000000",
"lane3": "0x00000000"
},
"pre3": {
"lane0": "0x00000000",
"lane1": "0x00000000",
"lane2": "0x00000000",
"lane3": "0x00000000"
},
"pre2": {
"lane0": "0x00000000",
"lane1": "0x00000000",
"lane2": "0x00000000",
"lane3": "0x00000000"
}
}
}
}
}
}
Loading