Skip to content

Commit 4458efb

Browse files
srideepDelljleveque
authored andcommitted
DellEMC: Add support for new platform z9332f -32x400G (sonic-net#3845)
* Switch Vendor: DellEMC * Switch SKU: z9332F * ASIC Vendor: Broadcom * Swich ASIC: tomahawk3 * Port Configuration: 32x400G * SONiC Image: sonic-broadcom.bin * Changes Include ipmitool implementation for platform_sensors script is inclued in pmon startup
1 parent 063deb9 commit 4458efb

38 files changed

+5910
-2
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{%- set default_topo = 't1' %}
2+
{%- include 'buffers_config.j2' %}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
{%- set default_cable = '40m' %}
3+
4+
{%- macro generate_buffer_pool_and_profiles() %}
5+
"BUFFER_POOL": {
6+
},
7+
"BUFFER_PROFILE": {
8+
},
9+
{%- endmacro %}
10+
11+
{%- macro generate_pg_profils(port_names_active) %}
12+
"BUFFER_PG": {
13+
},
14+
{%- endmacro %}
15+
16+
{% macro generate_queue_buffers(port_names_active) %}
17+
"BUFFER_QUEUE": {
18+
}
19+
{% endmacro %}
20+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
{%- set default_cable = '40m' %}
3+
4+
{%- macro generate_buffer_pool_and_profiles() %}
5+
"BUFFER_POOL": {
6+
},
7+
"BUFFER_PROFILE": {
8+
},
9+
{%- endmacro %}
10+
11+
{%- macro generate_pg_profils(port_names_active) %}
12+
"BUFFER_PG": {
13+
},
14+
{%- endmacro %}
15+
16+
{% macro generate_queue_buffers(port_names_active) %}
17+
"BUFFER_QUEUE": {
18+
}
19+
{% endmacro %}
20+
Binary file not shown.
Binary file not shown.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# PG lossless profiles.
2+
# speed cable size xon xoff threshold xon_offset
3+
10000 5m 1270 0 190500 -2 2540
4+
25000 5m 1270 0 190500 -2 2540
5+
40000 5m 1270 0 190500 -2 2540
6+
50000 5m 1270 0 190500 -2 2540
7+
100000 5m 1270 0 190500 -2 2540
8+
200000 5m 1270 0 190500 -2 2540
9+
400000 5m 1270 0 190500 -2 2540
10+
10000 40m 1270 0 190500 -2 2540
11+
25000 40m 1270 0 190500 -2 2540
12+
40000 40m 1270 0 190500 -2 2540
13+
50000 40m 1270 0 190500 -2 2540
14+
100000 40m 1270 0 190500 -2 2540
15+
200000 40m 1270 0 190500 -2 2540
16+
400000 40m 1270 0 190500 -2 2540
17+
10000 300m 1270 0 190500 -2 2540
18+
25000 300m 1270 0 190500 -2 2540
19+
40000 300m 1270 0 190500 -2 2540
20+
50000 300m 1270 0 190500 -2 2540
21+
100000 300m 1270 0 190500 -2 2540
22+
200000 300m 1270 0 190500 -2 2540
23+
400000 300m 1270 0 190500 -2 2540
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# name lanes alias index speed
2+
Ethernet0 33,34,35,36,37,38,39,40 fourhundredGigE1/1 1 400000
3+
Ethernet8 41,42,43,44,45,46,47,48 fourhundredGigE1/2 2 400000
4+
Ethernet16 49,50,51,52,53,54,55,56 fourhundredGigE1/3 3 400000
5+
Ethernet24 57,58,59,60,61,62,63,64 fourhundredGigE1/4 4 400000
6+
Ethernet32 65,66,67,68,69,70,71,72 fourhundredGigE1/5 5 400000
7+
Ethernet40 73,74,75,76,77,78,79,80 fourhundredGigE1/6 6 400000
8+
Ethernet48 81,82,83,84,85,86,87,88 fourhundredGigE1/7 7 400000
9+
Ethernet56 89,90,91,92,93,94,95,96 fourhundredGigE1/8 8 400000
10+
Ethernet64 1,2,3,4,5,6,7,8 fourhundredGigE1/9 9 400000
11+
Ethernet72 9,10,11,12,13,14,15,16 fourhundredGigE1/10 10 400000
12+
Ethernet80 17,18,19,20,21,22,23,24 fourhundredGigE1/11 11 400000
13+
Ethernet88 25,26,27,28,29,30,31,32 fourhundredGigE1/12 12 400000
14+
Ethernet96 97,98,99,100,101,102,103,104 fourhundredGigE1/13 13 400000
15+
Ethernet104 105,106,107,108,109,110,111,112 fourhundredGigE1/14 14 400000
16+
Ethernet112 113,114,115,116,117,118,119,120 fourhundredGigE1/15 15 400000
17+
Ethernet120 121,122,123,124,125,126,127,128 fourhundredGigE1/16 16 400000
18+
Ethernet128 129,130,131,132,133,134,135,136 fourhundredGigE1/17 17 400000
19+
Ethernet136 137,138,139,140,141,142,143,144 fourhundredGigE1/18 18 400000
20+
Ethernet144 145,146,147,148,149,150,151,152 fourhundredGigE1/19 19 400000
21+
Ethernet152 153,154,155,156,157,158,159,160 fourhundredGigE1/20 20 400000
22+
Ethernet160 225,226,227,228,229,230,231,232 fourhundredGigE1/21 21 400000
23+
Ethernet168 233,234,235,236,237,238,239,240 fourhundredGigE1/22 22 400000
24+
Ethernet176 241,242,243,244,245,246,247,248 fourhundredGigE1/23 23 400000
25+
Ethernet184 249,250,251,252,253,254,255,256 fourhundredGigE1/24 24 400000
26+
Ethernet192 161,162,163,164,165,166,167,168 fourhundredGigE1/25 25 400000
27+
Ethernet200 169,170,171,172,173,174,175,176 fourhundredGigE1/26 26 400000
28+
Ethernet208 177,178,179,180,181,182,183,184 fourhundredGigE1/27 27 400000
29+
Ethernet216 185,186,187,188,189,190,191,192 fourhundredGigE1/28 28 400000
30+
Ethernet224 193,194,195,196,197,198,199,200 fourhundredGigE1/29 29 400000
31+
Ethernet232 201,202,203,204,205,206,207,208 fourhundredGigE1/30 30 400000
32+
Ethernet240 209,210,211,212,213,214,215,216 fourhundredGigE1/31 31 400000
33+
Ethernet248 217,218,219,220,221,222,223,224 fourhundredGigE1/32 32 400000
34+
Ethernet256 257 tenGigE1/33 33 10000
35+
Ethernet257 258 tenGigE1/34 34 10000
Lines changed: 226 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,226 @@
1+
{%- set PORT_ALL = [] %}
2+
{%- for port in PORT %}
3+
{%- if PORT_ALL.append(port) %}{% endif %}
4+
{%- endfor %}
5+
{%- if PORT_ALL | sort_by_port_index %}{% endif %}
6+
7+
{%- set port_names_list_all = [] %}
8+
{%- for port in PORT_ALL %}
9+
{%- if port_names_list_all.append(port) %}{% endif %}
10+
{%- endfor %}
11+
{%- set port_names_all = port_names_list_all | join(',') -%}
12+
13+
14+
{%- set PORT_ACTIVE = [] %}
15+
{%- if DEVICE_NEIGHBOR is not defined %}
16+
{%- set PORT_ACTIVE = PORT_ALL %}
17+
{%- else %}
18+
{%- for port in DEVICE_NEIGHBOR.keys() %}
19+
{%- if PORT_ACTIVE.append(port) %}{%- endif %}
20+
{%- endfor %}
21+
{%- endif %}
22+
{%- if PORT_ACTIVE | sort_by_port_index %}{% endif %}
23+
24+
{%- set port_names_list_active = [] %}
25+
{%- for port in PORT_ACTIVE %}
26+
{%- if port_names_list_active.append(port) %}{%- endif %}
27+
{%- endfor %}
28+
{%- set port_names_active = port_names_list_active | join(',') -%}
29+
30+
31+
{%- set pfc_to_pg_map_supported_asics = ['mellanox', 'barefoot', 'marvell'] -%}
32+
33+
34+
{
35+
{% if generate_tc_to_pg_map is defined %}
36+
{{- generate_tc_to_pg_map() }}
37+
{% else %}
38+
"TC_TO_PRIORITY_GROUP_MAP": {
39+
"DEFAULT": {
40+
"0": "0",
41+
"1": "0",
42+
"2": "0",
43+
"3": "3",
44+
"4": "4",
45+
"5": "0",
46+
"6": "0",
47+
"7": "7"
48+
}
49+
},
50+
{% endif %}
51+
"MAP_PFC_PRIORITY_TO_QUEUE": {
52+
"DEFAULT": {
53+
"0": "0",
54+
"1": "1",
55+
"2": "2",
56+
"3": "3",
57+
"4": "4",
58+
"5": "5",
59+
"6": "6",
60+
"7": "7"
61+
}
62+
},
63+
"TC_TO_QUEUE_MAP": {
64+
"DEFAULT": {
65+
"0": "0",
66+
"1": "1",
67+
"2": "2",
68+
"3": "3",
69+
"4": "4",
70+
"5": "5",
71+
"6": "6",
72+
"7": "7"
73+
}
74+
},
75+
"DSCP_TO_TC_MAP": {
76+
"DEFAULT": {
77+
"0" : "0",
78+
"1" : "0",
79+
"2" : "0",
80+
"3" : "0",
81+
"4" : "0",
82+
"5" : "0",
83+
"6" : "0",
84+
"7" : "0",
85+
"8" : "0",
86+
"9" : "0",
87+
"10": "0",
88+
"11": "0",
89+
"12": "0",
90+
"13": "0",
91+
"14": "0",
92+
"15": "0",
93+
"16": "0",
94+
"17": "0",
95+
"18": "0",
96+
"19": "0",
97+
"20": "0",
98+
"21": "0",
99+
"22": "0",
100+
"23": "0",
101+
"24": "0",
102+
"25": "0",
103+
"26": "0",
104+
"27": "0",
105+
"28": "0",
106+
"29": "0",
107+
"30": "0",
108+
"31": "0",
109+
"32": "0",
110+
"33": "0",
111+
"34": "0",
112+
"35": "0",
113+
"36": "0",
114+
"37": "0",
115+
"38": "0",
116+
"39": "0",
117+
"40": "0",
118+
"41": "0",
119+
"42": "0",
120+
"43": "0",
121+
"44": "0",
122+
"45": "0",
123+
"46": "0",
124+
"47": "0",
125+
"48": "0",
126+
"49": "0",
127+
"50": "0",
128+
"51": "0",
129+
"52": "0",
130+
"53": "0",
131+
"54": "0",
132+
"55": "0",
133+
"56": "0",
134+
"57": "0",
135+
"58": "0",
136+
"59": "0",
137+
"60": "0",
138+
"61": "0",
139+
"62": "0",
140+
"63": "0"
141+
}
142+
},
143+
"SCHEDULER": {
144+
"scheduler.0": {
145+
"type" : "DWRR",
146+
"weight": "1"
147+
},
148+
"scheduler.1": {
149+
"type" : "DWRR",
150+
"weight": "2"
151+
},
152+
"scheduler.2": {
153+
"type" : "DWRR",
154+
"weight": "3"
155+
},
156+
"scheduler.3": {
157+
"type" : "DWRR",
158+
"weight": "4"
159+
},
160+
"scheduler.4": {
161+
"type" : "DWRR",
162+
"weight": "5"
163+
},
164+
"scheduler.5": {
165+
"type" : "DWRR",
166+
"weight": "10"
167+
},
168+
"scheduler.6": {
169+
"type" : "DWRR",
170+
"weight": "25"
171+
},
172+
"scheduler.7": {
173+
"type" : "STRICT"
174+
}
175+
},
176+
"PORT_QOS_MAP": {
177+
"{{ port_names_active }}": {
178+
"dscp_to_tc_map" : "[DSCP_TO_TC_MAP|DEFAULT]",
179+
"tc_to_queue_map" : "[TC_TO_QUEUE_MAP|DEFAULT]",
180+
"pfc_enable" : "3,4",
181+
"tc_to_pg_map" : "[TC_TO_PRIORITY_GROUP_MAP|DEFAULT]"
182+
}
183+
},
184+
"QUEUE": {
185+
{% for port in PORT_ACTIVE %}
186+
"{{ port }}|0": {
187+
"scheduler" : "[SCHEDULER|scheduler.0]"
188+
},
189+
{% endfor %}
190+
{% for port in PORT_ACTIVE %}
191+
"{{ port }}|1": {
192+
"scheduler" : "[SCHEDULER|scheduler.1]"
193+
},
194+
{% endfor %}
195+
{% for port in PORT_ACTIVE %}
196+
"{{ port }}|2": {
197+
"scheduler": "[SCHEDULER|scheduler.2]"
198+
},
199+
{% endfor %}
200+
{% for port in PORT_ACTIVE %}
201+
"{{ port }}|3": {
202+
"scheduler": "[SCHEDULER|scheduler.3]"
203+
},
204+
{% endfor %}
205+
{% for port in PORT_ACTIVE %}
206+
"{{ port }}|4": {
207+
"scheduler": "[SCHEDULER|scheduler.4]"
208+
},
209+
{% endfor %}
210+
{% for port in PORT_ACTIVE %}
211+
"{{ port }}|5": {
212+
"scheduler": "[SCHEDULER|scheduler.5]"
213+
},
214+
{% endfor %}
215+
{% for port in PORT_ACTIVE %}
216+
"{{ port }}|6": {
217+
"scheduler": "[SCHEDULER|scheduler.6]"
218+
},
219+
{% endfor %}
220+
{% for port in PORT_ACTIVE %}
221+
"{{ port }}|7": {
222+
"scheduler": "[SCHEDULER|scheduler.7]"
223+
}{% if not loop.last %},{% endif %}
224+
{% endfor %}
225+
}
226+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th3-z9332f-32x400G.config.bcm

0 commit comments

Comments
 (0)