Skip to content

Commit 30d289f

Browse files
prsunnylguohan
authored andcommitted
50G support for Arista 7060 (#1580)
* 50G SKU for Arista 7060
1 parent 062d600 commit 30d289f

File tree

6 files changed

+305
-0
lines changed

6 files changed

+305
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{%- set default_topo = 't0' %}
2+
{%- include 'buffers_config.j2' %}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{%- set default_cable = '5m' %}
2+
3+
{%- macro generate_port_lists(PORT_ALL) %}
4+
{# Generate list of ports #}
5+
{%- for port_idx in range(0,6) %}
6+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %}
7+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4 + 2)) %}{%- endif %}
8+
{%- endfor %}
9+
{%- for port_idx in range(10,22) %}
10+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %}
11+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4 + 2)) %}{%- endif %}
12+
{%- endfor %}
13+
{%- for port_idx in range(24,32) %}
14+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %}
15+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4 + 2)) %}{%- endif %}
16+
{%- endfor %}
17+
{%- for port_idx in range(6,10) %}
18+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %}
19+
{%- endfor %}
20+
{%- for port_idx in range(22,24) %}
21+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %}
22+
{%- endfor %}
23+
{%- endmacro %}
24+
25+
{%- macro generate_buffer_pool_and_profiles() %}
26+
"BUFFER_POOL": {
27+
"ingress_lossless_pool": {
28+
"size": "11213696",
29+
"type": "ingress",
30+
"mode": "dynamic",
31+
"xoff": "8356608"
32+
},
33+
"egress_lossy_pool": {
34+
"size": "9532224",
35+
"type": "egress",
36+
"mode": "dynamic"
37+
},
38+
"egress_lossless_pool": {
39+
"size": "15982720",
40+
"type": "egress",
41+
"mode": "static"
42+
}
43+
},
44+
"BUFFER_PROFILE": {
45+
"ingress_lossy_profile": {
46+
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
47+
"size":"0",
48+
"dynamic_th":"3"
49+
},
50+
"egress_lossless_profile": {
51+
"pool":"[BUFFER_POOL|egress_lossless_pool]",
52+
"size":"1518",
53+
"static_th":"3995680"
54+
},
55+
"egress_lossy_profile": {
56+
"pool":"[BUFFER_POOL|egress_lossy_pool]",
57+
"size":"1518",
58+
"dynamic_th":"3"
59+
}
60+
},
61+
{%- endmacro %}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# PG lossless profiles.
2+
# speed cable size xon xoff threshold xon_offset
3+
10000 5m 1248 2288 35776 -4 2288
4+
25000 5m 1248 2288 53248 -4 2288
5+
40000 5m 1248 2288 66560 -4 2288
6+
50000 5m 1248 2288 79872 -4 2288
7+
100000 5m 1248 2288 165568 -4 2288
8+
10000 40m 1248 2288 37024 -4 2288
9+
25000 40m 1248 2288 56160 -4 2288
10+
40000 40m 1248 2288 71552 -4 2288
11+
50000 40m 1248 2288 85696 -4 2288
12+
100000 40m 1248 2288 177632 -4 2288
13+
10000 300m 1248 2288 46176 -4 2288
14+
25000 300m 1248 2288 79040 -4 2288
15+
40000 300m 1248 2288 108160 -4 2288
16+
50000 300m 1248 2288 131456 -4 2288
17+
100000 300m 1248 2288 268736 -4 2288
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# name lanes alias index speed
2+
Ethernet0 33,34 Ethernet1/1 1 50000
3+
Ethernet2 35,36 Ethernet1/3 1 50000
4+
Ethernet4 37,38 Ethernet2/1 2 50000
5+
Ethernet6 39,40 Ethernet2/3 2 50000
6+
Ethernet8 41,42 Ethernet3/1 3 50000
7+
Ethernet10 43,44 Ethernet3/3 3 50000
8+
Ethernet12 45,46 Ethernet4/1 4 50000
9+
Ethernet14 47,48 Ethernet4/3 4 50000
10+
Ethernet16 49,50 Ethernet5/1 5 50000
11+
Ethernet18 51,52 Ethernet5/3 5 50000
12+
Ethernet20 53,54 Ethernet6/1 6 50000
13+
Ethernet22 55,56 Ethernet6/3 6 50000
14+
Ethernet24 57,58,59,60 Ethernet7/1 7 100000
15+
Ethernet28 61,62,63,64 Ethernet8/1 8 100000
16+
Ethernet32 65,66,67,68 Ethernet9/1 9 100000
17+
Ethernet36 69,70,71,72 Ethernet10/1 10 100000
18+
Ethernet40 73,74 Ethernet11/1 11 50000
19+
Ethernet42 75,76 Ethernet11/3 11 50000
20+
Ethernet44 77,78 Ethernet12/1 12 50000
21+
Ethernet46 79,80 Ethernet12/3 12 50000
22+
Ethernet48 81,82 Ethernet13/1 13 50000
23+
Ethernet50 83,84 Ethernet13/3 13 50000
24+
Ethernet52 85,86 Ethernet14/1 14 50000
25+
Ethernet54 87,88 Ethernet14/3 14 50000
26+
Ethernet56 89,90 Ethernet15/1 15 50000
27+
Ethernet58 91,92 Ethernet15/3 15 50000
28+
Ethernet60 93,94 Ethernet16/1 16 50000
29+
Ethernet62 95,96 Ethernet16/3 16 50000
30+
Ethernet64 97,98 Ethernet17/1 17 50000
31+
Ethernet66 99,100 Ethernet17/3 17 50000
32+
Ethernet68 101,102 Ethernet18/1 18 50000
33+
Ethernet70 103,104 Ethernet18/3 18 50000
34+
Ethernet72 105,106 Ethernet19/1 19 50000
35+
Ethernet74 107,108 Ethernet19/3 19 50000
36+
Ethernet76 109,110 Ethernet20/1 20 50000
37+
Ethernet78 111,112 Ethernet20/3 20 50000
38+
Ethernet80 113,114 Ethernet21/1 21 50000
39+
Ethernet82 115,116 Ethernet21/3 21 50000
40+
Ethernet84 117,118 Ethernet22/1 22 50000
41+
Ethernet86 119,120 Ethernet22/3 22 50000
42+
Ethernet88 121,122,123,124 Ethernet23/1 23 100000
43+
Ethernet92 125,126,127,128 Ethernet24/1 24 100000
44+
Ethernet96 1,2,3,4 Ethernet25/1 25 100000
45+
Ethernet100 5,6,7,8 Ethernet26/1 26 100000
46+
Ethernet104 9,10 Ethernet27/1 27 50000
47+
Ethernet106 11,12 Ethernet27/3 27 50000
48+
Ethernet108 13,14 Ethernet28/1 28 50000
49+
Ethernet110 15,16 Ethernet28/3 28 50000
50+
Ethernet112 17,18 Ethernet29/1 29 50000
51+
Ethernet114 19,20 Ethernet29/3 29 50000
52+
Ethernet116 21,22 Ethernet30/1 30 50000
53+
Ethernet118 23,24 Ethernet30/3 30 50000
54+
Ethernet120 25,26 Ethernet31/1 31 50000
55+
Ethernet122 27,28 Ethernet31/3 31 50000
56+
Ethernet124 29,30 Ethernet32/1 32 50000
57+
Ethernet126 31,32 Ethernet32/3 32 50000
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
{
2+
"TC_TO_PRIORITY_GROUP_MAP": {
3+
"AZURE": {
4+
"0": "0",
5+
"1": "1",
6+
"2": "2",
7+
"3": "3",
8+
"4": "4",
9+
"5": "5",
10+
"6": "6",
11+
"7": "7"
12+
}
13+
},
14+
"MAP_PFC_PRIORITY_TO_QUEUE": {
15+
"AZURE": {
16+
"0": "0",
17+
"1": "1",
18+
"2": "2",
19+
"3": "3",
20+
"4": "4",
21+
"5": "5",
22+
"6": "6",
23+
"7": "7"
24+
}
25+
},
26+
"TC_TO_QUEUE_MAP": {
27+
"AZURE": {
28+
"0": "0",
29+
"1": "1",
30+
"2": "2",
31+
"3": "3",
32+
"4": "4",
33+
"5": "5",
34+
"6": "6",
35+
"7": "7"
36+
}
37+
},
38+
"DSCP_TO_TC_MAP": {
39+
"AZURE": {
40+
"0":"0",
41+
"1":"0",
42+
"2":"0",
43+
"3":"3",
44+
"4":"4",
45+
"5":"0",
46+
"6":"0",
47+
"7":"0",
48+
"8":"1",
49+
"9":"0",
50+
"10":"0",
51+
"11":"0",
52+
"12":"0",
53+
"13":"0",
54+
"14":"0",
55+
"15":"0",
56+
"16":"0",
57+
"17":"0",
58+
"18":"0",
59+
"19":"0",
60+
"20":"0",
61+
"21":"0",
62+
"22":"0",
63+
"23":"0",
64+
"24":"0",
65+
"25":"0",
66+
"26":"0",
67+
"27":"0",
68+
"28":"0",
69+
"29":"0",
70+
"30":"0",
71+
"31":"0",
72+
"32":"0",
73+
"33":"0",
74+
"34":"0",
75+
"35":"0",
76+
"36":"0",
77+
"37":"0",
78+
"38":"0",
79+
"39":"0",
80+
"40":"0",
81+
"41":"0",
82+
"42":"0",
83+
"43":"0",
84+
"44":"0",
85+
"45":"0",
86+
"46":"0",
87+
"47":"0",
88+
"48":"0",
89+
"49":"0",
90+
"50":"0",
91+
"51":"0",
92+
"52":"0",
93+
"53":"0",
94+
"54":"0",
95+
"55":"0",
96+
"56":"0",
97+
"57":"0",
98+
"58":"0",
99+
"59":"0",
100+
"60":"0",
101+
"61":"0",
102+
"62":"0",
103+
"63":"0"
104+
}
105+
},
106+
"SCHEDULER": {
107+
"scheduler.0" : {
108+
"type":"DWRR",
109+
"weight": "25"
110+
},
111+
"scheduler.1" : {
112+
"type":"DWRR",
113+
"weight": "30"
114+
},
115+
"scheduler.2" : {
116+
"type":"DWRR",
117+
"weight": "20"
118+
}
119+
},
120+
"PORT_QOS_MAP": {
121+
"Ethernet0,Ethernet2,Ethernet4,Ethernet6,Ethernet8,Ethernet10,Ethernet12,Ethernet14,Ethernet16,Ethernet18,Ethernet20,Ethernet22,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet42,Ethernet44,Ethernet46,Ethernet48,Ethernet50,Ethernet52,Ethernet54,Ethernet56,Ethernet58,Ethernet60,Ethernet62,Ethernet64,Ethernet66,Ethernet68,Ethernet70,Ethernet72,Ethernet74,Ethernet76,Ethernet78,Ethernet80,Ethernet82,Ethernet84,Ethernet86,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet106,Ethernet108,Ethernet110,Ethernet112,Ethernet114,Ethernet116,Ethernet118,Ethernet120,Ethernet122,Ethernet124,Ethernet126": {
122+
"dscp_to_tc_map" : "[DSCP_TO_TC_MAP|AZURE]",
123+
"tc_to_queue_map" : "[TC_TO_QUEUE_MAP|AZURE]",
124+
"tc_to_pg_map" : "[TC_TO_PRIORITY_GROUP_MAP|AZURE]",
125+
"pfc_to_queue_map": "[MAP_PFC_PRIORITY_TO_QUEUE|AZURE]",
126+
"pfc_enable": "3,4"
127+
}
128+
},
129+
"WRED_PROFILE": {
130+
"AZURE_LOSSY" : {
131+
"wred_green_enable":"true",
132+
"wred_yellow_enable":"true",
133+
"ecn":"ecn_all",
134+
"red_max_threshold":"512000",
135+
"red_min_threshold":"512000",
136+
"yellow_max_threshold":"512000",
137+
"yellow_min_threshold":"512000",
138+
"green_max_threshold": "184320",
139+
"green_min_threshold": "184320"
140+
},
141+
"AZURE_LOSSLESS" : {
142+
"wred_green_enable":"true",
143+
"wred_yellow_enable":"true",
144+
"ecn":"ecn_all",
145+
"red_max_threshold":"512000",
146+
"red_min_threshold":"512000",
147+
"yellow_max_threshold":"512000",
148+
"yellow_min_threshold":"512000",
149+
"green_max_threshold": "184320",
150+
"green_min_threshold": "184320"
151+
}
152+
},
153+
"QUEUE": {
154+
"Ethernet0,Ethernet2,Ethernet4,Ethernet6,Ethernet8,Ethernet10,Ethernet12,Ethernet14,Ethernet16,Ethernet18,Ethernet20,Ethernet22,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet42,Ethernet44,Ethernet46,Ethernet48,Ethernet50,Ethernet52,Ethernet54,Ethernet56,Ethernet58,Ethernet60,Ethernet62,Ethernet64,Ethernet66,Ethernet68,Ethernet70,Ethernet72,Ethernet74,Ethernet76,Ethernet78,Ethernet80,Ethernet82,Ethernet84,Ethernet86,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet106,Ethernet108,Ethernet110,Ethernet112,Ethernet114,Ethernet116,Ethernet118,Ethernet120,Ethernet122,Ethernet124,Ethernet126|0-1": {
155+
"wred_profile" : "[WRED_PROFILE|AZURE_LOSSY]"
156+
},
157+
"Ethernet0,Ethernet2,Ethernet4,Ethernet6,Ethernet8,Ethernet10,Ethernet12,Ethernet14,Ethernet16,Ethernet18,Ethernet20,Ethernet22,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet42,Ethernet44,Ethernet46,Ethernet48,Ethernet50,Ethernet52,Ethernet54,Ethernet56,Ethernet58,Ethernet60,Ethernet62,Ethernet64,Ethernet66,Ethernet68,Ethernet70,Ethernet72,Ethernet74,Ethernet76,Ethernet78,Ethernet80,Ethernet82,Ethernet84,Ethernet86,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet106,Ethernet108,Ethernet110,Ethernet112,Ethernet114,Ethernet116,Ethernet118,Ethernet120,Ethernet122,Ethernet124,Ethernet126|3-4": {
158+
"scheduler" : "[SCHEDULER|scheduler.0]"
159+
},
160+
"Ethernet0,Ethernet2,Ethernet4,Ethernet6,Ethernet8,Ethernet10,Ethernet12,Ethernet14,Ethernet16,Ethernet18,Ethernet20,Ethernet22,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet42,Ethernet44,Ethernet46,Ethernet48,Ethernet50,Ethernet52,Ethernet54,Ethernet56,Ethernet58,Ethernet60,Ethernet62,Ethernet64,Ethernet66,Ethernet68,Ethernet70,Ethernet72,Ethernet74,Ethernet76,Ethernet78,Ethernet80,Ethernet82,Ethernet84,Ethernet86,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet106,Ethernet108,Ethernet110,Ethernet112,Ethernet114,Ethernet116,Ethernet118,Ethernet120,Ethernet122,Ethernet124,Ethernet126|0": {
161+
"scheduler" : "[SCHEDULER|scheduler.1]"
162+
},
163+
"Ethernet0,Ethernet2,Ethernet4,Ethernet6,Ethernet8,Ethernet10,Ethernet12,Ethernet14,Ethernet16,Ethernet18,Ethernet20,Ethernet22,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet42,Ethernet44,Ethernet46,Ethernet48,Ethernet50,Ethernet52,Ethernet54,Ethernet56,Ethernet58,Ethernet60,Ethernet62,Ethernet64,Ethernet66,Ethernet68,Ethernet70,Ethernet72,Ethernet74,Ethernet76,Ethernet78,Ethernet80,Ethernet82,Ethernet84,Ethernet86,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet106,Ethernet108,Ethernet110,Ethernet112,Ethernet114,Ethernet116,Ethernet118,Ethernet120,Ethernet122,Ethernet124,Ethernet126|1": {
164+
"scheduler" : "[SCHEDULER|scheduler.2]"
165+
}
166+
}
167+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SAI_INIT_CONFIG_FILE=/etc/bcm/th-a7060-cx32s-8x100G+48x50G.config.bcm

0 commit comments

Comments
 (0)