Skip to content

Commit 7d38b45

Browse files
[Mellanox] Add device files for SN5600 (#12831)
- Why I did it Add device files for new platform SN5600 - How I did it Add device files for new platform SN5600 - How to verify it Manual test
1 parent df4312f commit 7d38b45

28 files changed

+2876
-0
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-mlnx_msn2700-r0/ACS-MSN2700/buffers_defaults_objects.j2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
{#
2+
Copyright (c) 2021-2022 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 = '5m' %}
18+
{% set ingress_lossless_pool_size = '67737959' %}
19+
{% set ingress_lossy_pool_size = '67737959' %}
20+
{% set egress_lossless_pool_size = '158229504' %}
21+
{% set egress_lossy_pool_size = '67737959' %}
22+
23+
{%- macro generate_port_lists(PORT_ALL) %}
24+
{# Generate list of ports #}
25+
{%- for port_idx in range(0, 32) %}
26+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx)) %}{%- endif %}
27+
{%- endfor %}
28+
{%- endmacro %}
29+
30+
{%- macro generate_buffer_pool_and_profiles() %}
31+
"BUFFER_POOL": {
32+
"ingress_lossless_pool": {
33+
{%- if dynamic_mode is not defined %}
34+
"size": "{{ ingress_lossless_pool_size }}",
35+
{%- endif %}
36+
"type": "ingress",
37+
"mode": "dynamic"
38+
},
39+
"ingress_lossy_pool": {
40+
{%- if dynamic_mode is not defined %}
41+
"size": "{{ ingress_lossy_pool_size }}",
42+
{%- endif %}
43+
"type": "ingress",
44+
"mode": "dynamic"
45+
},
46+
"egress_lossless_pool": {
47+
"size": "{{ egress_lossless_pool_size }}",
48+
"type": "egress",
49+
"mode": "dynamic"
50+
},
51+
"egress_lossy_pool": {
52+
{%- if dynamic_mode is not defined %}
53+
"size": "{{ egress_lossy_pool_size }}",
54+
{%- endif %}
55+
"type": "egress",
56+
"mode": "dynamic"
57+
}
58+
},
59+
"BUFFER_PROFILE": {
60+
"ingress_lossless_profile": {
61+
"pool":"ingress_lossless_pool",
62+
"size":"0",
63+
"dynamic_th":"7"
64+
},
65+
"ingress_lossy_profile": {
66+
"pool":"ingress_lossy_pool",
67+
"size":"0",
68+
"dynamic_th":"3"
69+
},
70+
"egress_lossless_profile": {
71+
"pool":"egress_lossless_pool",
72+
"size":"0",
73+
"dynamic_th":"7"
74+
},
75+
"egress_lossy_profile": {
76+
"pool":"egress_lossy_pool",
77+
"size":"9216",
78+
"dynamic_th":"7"
79+
},
80+
"q_lossy_profile": {
81+
"pool":"egress_lossy_pool",
82+
"size":"0",
83+
"dynamic_th":"3"
84+
}
85+
},
86+
{%- endmacro %}
87+
88+
{%- macro generate_profile_lists(port_names) %}
89+
"BUFFER_PORT_INGRESS_PROFILE_LIST": {
90+
{% for port in port_names.split(',') %}
91+
"{{ port }}": {
92+
"profile_list" : "ingress_lossless_profile,ingress_lossy_profile"
93+
}{% if not loop.last %},{% endif %}
94+
95+
{% endfor %}
96+
},
97+
"BUFFER_PORT_EGRESS_PROFILE_LIST": {
98+
{% for port in port_names.split(',') %}
99+
"{{ port }}": {
100+
"profile_list" : "egress_lossless_profile,egress_lossy_profile"
101+
}{% if not loop.last %},{% endif %}
102+
103+
{% endfor %}
104+
}
105+
{%- endmacro %}
106+
107+
{%- macro generate_queue_buffers(port_names) %}
108+
"BUFFER_QUEUE": {
109+
{% for port in port_names.split(',') %}
110+
"{{ port }}|3-4": {
111+
"profile" : "egress_lossless_profile"
112+
},
113+
{% endfor %}
114+
{% for port in port_names.split(',') %}
115+
"{{ port }}|0-2": {
116+
"profile" : "q_lossy_profile"
117+
},
118+
{% endfor %}
119+
{% for port in port_names.split(',') %}
120+
"{{ port }}|5-6": {
121+
"profile" : "q_lossy_profile"
122+
}{% if not loop.last %},{% endif %}
123+
124+
{% endfor %}
125+
}
126+
{%- endmacro %}
127+
128+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
{#
2+
Copyright (c) 2021-2022 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 = '5m' %}
18+
{% set ingress_lossless_pool_size = '52161690' %}
19+
{% set ingress_lossy_pool_size = '52161690' %}
20+
{% set egress_lossless_pool_size = '158229504' %}
21+
{% set egress_lossy_pool_size = '52161690' %}
22+
23+
{%- macro generate_port_lists(PORT_ALL) %}
24+
{# Generate list of ports #}
25+
{%- for port_idx in range(0, 32) %}
26+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx)) %}{%- endif %}
27+
{%- endfor %}
28+
{%- endmacro %}
29+
30+
{%- macro generate_buffer_pool_and_profiles() %}
31+
"BUFFER_POOL": {
32+
"ingress_lossless_pool": {
33+
{%- if dynamic_mode is not defined %}
34+
"size": "{{ ingress_lossless_pool_size }}",
35+
{%- endif %}
36+
"type": "ingress",
37+
"mode": "dynamic"
38+
},
39+
"ingress_lossy_pool": {
40+
{%- if dynamic_mode is not defined %}
41+
"size": "{{ ingress_lossy_pool_size }}",
42+
{%- endif %}
43+
"type": "ingress",
44+
"mode": "dynamic"
45+
},
46+
"egress_lossless_pool": {
47+
"size": "{{ egress_lossless_pool_size }}",
48+
"type": "egress",
49+
"mode": "dynamic"
50+
},
51+
"egress_lossy_pool": {
52+
{%- if dynamic_mode is not defined %}
53+
"size": "{{ egress_lossy_pool_size }}",
54+
{%- endif %}
55+
"type": "egress",
56+
"mode": "dynamic"
57+
}
58+
},
59+
"BUFFER_PROFILE": {
60+
"ingress_lossless_profile": {
61+
"pool":"ingress_lossless_pool",
62+
"size":"0",
63+
"dynamic_th":"7"
64+
},
65+
"ingress_lossy_profile": {
66+
"pool":"ingress_lossy_pool",
67+
"size":"0",
68+
"dynamic_th":"3"
69+
},
70+
"egress_lossless_profile": {
71+
"pool":"egress_lossless_pool",
72+
"size":"0",
73+
"dynamic_th":"7"
74+
},
75+
"egress_lossy_profile": {
76+
"pool":"egress_lossy_pool",
77+
"size":"9216",
78+
"dynamic_th":"7"
79+
},
80+
"q_lossy_profile": {
81+
"pool":"egress_lossy_pool",
82+
"size":"0",
83+
"dynamic_th":"3"
84+
}
85+
},
86+
{%- endmacro %}
87+
88+
{%- macro generate_profile_lists(port_names) %}
89+
"BUFFER_PORT_INGRESS_PROFILE_LIST": {
90+
{% for port in port_names.split(',') %}
91+
"{{ port }}": {
92+
"profile_list" : "ingress_lossless_profile,ingress_lossy_profile"
93+
}{% if not loop.last %},{% endif %}
94+
95+
{% endfor %}
96+
},
97+
"BUFFER_PORT_EGRESS_PROFILE_LIST": {
98+
{% for port in port_names.split(',') %}
99+
"{{ port }}": {
100+
"profile_list" : "egress_lossless_profile,egress_lossy_profile"
101+
}{% if not loop.last %},{% endif %}
102+
103+
{% endfor %}
104+
}
105+
{%- endmacro %}
106+
107+
{%- macro generate_queue_buffers(port_names) %}
108+
"BUFFER_QUEUE": {
109+
{% for port in port_names.split(',') %}
110+
"{{ port }}|3-4": {
111+
"profile" : "egress_lossless_profile"
112+
},
113+
{% endfor %}
114+
{% for port in port_names.split(',') %}
115+
"{{ port }}|0-2": {
116+
"profile" : "q_lossy_profile"
117+
},
118+
{% endfor %}
119+
{% for port in port_names.split(',') %}
120+
"{{ port }}|5-6": {
121+
"profile" : "q_lossy_profile"
122+
}{% if not loop.last %},{% endif %}
123+
124+
{% endfor %}
125+
}
126+
{%- endmacro %}
127+
128+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../x86_64-mlnx_msn2700-r0/ACS-MSN2700/buffers_dynamic.json.j2

0 commit comments

Comments
 (0)