Skip to content

Commit 9b2a594

Browse files
zzhiyuanlguohan
authored andcommitted
[devices]: Add new hwsku Arista-7050-Q31S4 (#2075)
1 parent cfe01f1 commit 9b2a594

File tree

9 files changed

+929
-0
lines changed

9 files changed

+929
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{%- set default_topo = 't1' %}
2+
{%- include 'buffers_config.j2' %}
3+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{%- set default_cable = '300m' %}
2+
3+
{%- macro generate_port_lists(PORT_ALL) %}
4+
{# Generate list of ports #}
5+
{% if PORT_ALL.append("Ethernet0") %}{% endif %}
6+
{% if PORT_ALL.append("Ethernet1") %}{% endif %}
7+
{% if PORT_ALL.append("Ethernet2") %}{% endif %}
8+
{% if PORT_ALL.append("Ethernet3") %}{% endif %}
9+
{% for port_idx in range(1,32) %}
10+
{% if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{% endif %}
11+
{% endfor %}
12+
{%- endmacro %}
13+
14+
{%- macro generate_buffer_pool_and_profiles() %}
15+
"BUFFER_POOL": {
16+
"ingress_lossless_pool": {
17+
"size": "12766208",
18+
"type": "ingress",
19+
"mode": "dynamic"
20+
},
21+
"egress_lossless_pool": {
22+
"size": "12766208",
23+
"type": "egress",
24+
"mode": "static"
25+
},
26+
"egress_lossy_pool": {
27+
"size": "8072396",
28+
"type": "egress",
29+
"mode": "dynamic"
30+
}
31+
},
32+
"BUFFER_PROFILE": {
33+
"ingress_lossy_profile": {
34+
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
35+
"size":"0",
36+
"dynamic_th":"3"
37+
},
38+
"egress_lossless_profile": {
39+
"pool":"[BUFFER_POOL|egress_lossless_pool]",
40+
"size":"0",
41+
"static_th":"12766208"
42+
},
43+
"egress_lossy_profile": {
44+
"pool":"[BUFFER_POOL|egress_lossy_pool]",
45+
"size":"1518",
46+
"dynamic_th":"3"
47+
}
48+
},
49+
{%- endmacro %}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
echo 1 > /sys/devices/pci0000:00/0000:00:02.2/0000:02:00.0/mux
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# PG lossless profiles.
2+
# speed cable size xon xoff threshold xon_offset
3+
10000 5m 41808 18432 40560 -4 2496
4+
40000 5m 41808 18432 40560 -4 2496
5+
50000 5m 41808 18432 40560 -4 2496
6+
100000 5m 41808 18432 40560 -4 2496
7+
10000 40m 41808 18432 40560 -4 2496
8+
40000 40m 41808 18432 40560 -4 2496
9+
50000 40m 41808 18432 40560 -4 2496
10+
100000 40m 41808 18432 40560 -4 2496
11+
10000 300m 41808 18432 40560 -4 2496
12+
40000 300m 41808 18432 40560 -4 2496
13+
50000 300m 41808 18432 40560 -4 2496
14+
100000 300m 41808 18432 40560 -4 2496
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# name lanes alias index
2+
Ethernet0 9 Ethernet1 1
3+
Ethernet1 10 Ethernet2 2
4+
Ethernet2 11 Ethernet3 3
5+
Ethernet3 12 Ethernet4 4
6+
Ethernet4 13,14,15,16 Ethernet6/1 6
7+
Ethernet8 17,18,19,20 Ethernet7/1 7
8+
Ethernet12 21,22,23,24 Ethernet8/1 8
9+
Ethernet16 29,30,31,32 Ethernet9/1 9
10+
Ethernet20 25,26,27,28 Ethernet10/1 10
11+
Ethernet24 33,34,35,36 Ethernet11/1 11
12+
Ethernet28 37,38,39,40 Ethernet12/1 12
13+
Ethernet32 45,46,47,48 Ethernet13/1 13
14+
Ethernet36 41,42,43,44 Ethernet14/1 14
15+
Ethernet40 49,50,51,52 Ethernet15/1 15
16+
Ethernet44 53,54,55,56 Ethernet16/1 16
17+
Ethernet48 69,70,71,72 Ethernet17/1 17
18+
Ethernet52 65,66,67,68 Ethernet18/1 18
19+
Ethernet56 73,74,75,76 Ethernet19/1 19
20+
Ethernet60 77,78,79,80 Ethernet20/1 20
21+
Ethernet64 93,94,95,96 Ethernet21/1 21
22+
Ethernet68 89,90,91,92 Ethernet22/1 22
23+
Ethernet72 97,98,99,100 Ethernet23/1 23
24+
Ethernet76 101,102,103,104 Ethernet24/1 24
25+
Ethernet80 109,110,111,112 Ethernet25/1 25
26+
Ethernet84 105,106,107,108 Ethernet26/1 26
27+
Ethernet88 121,122,123,124 Ethernet27/1 27
28+
Ethernet92 125,126,127,128 Ethernet28/1 28
29+
Ethernet96 61,62,63,64 Ethernet29 29
30+
Ethernet100 57,58,59,60 Ethernet30 30
31+
Ethernet104 81,82,83,84 Ethernet31 31
32+
Ethernet108 85,86,87,88 Ethernet32 32
33+
Ethernet112 117,118,119,120 Ethernet33 33
34+
Ethernet116 113,114,115,116 Ethernet34 34
35+
Ethernet120 1,2,3,4 Ethernet35 35
36+
Ethernet124 5,6,7,8 Ethernet36 36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
{
2+
"TC_TO_PRIORITY_GROUP_MAP": {
3+
"AZURE": {
4+
"0": "0",
5+
"1": "1",
6+
"3": "3",
7+
"4": "4"
8+
}
9+
},
10+
"MAP_PFC_PRIORITY_TO_QUEUE": {
11+
"AZURE": {
12+
"0": "0",
13+
"1": "1",
14+
"3": "3",
15+
"4": "4"
16+
}
17+
},
18+
"TC_TO_QUEUE_MAP": {
19+
"AZURE": {
20+
"0": "0",
21+
"1": "1",
22+
"3": "3",
23+
"4": "4"
24+
}
25+
},
26+
"DSCP_TO_TC_MAP": {
27+
"AZURE": {
28+
"0":"0",
29+
"1":"0",
30+
"2":"0",
31+
"3":"3",
32+
"4":"4",
33+
"5":"0",
34+
"6":"0",
35+
"7":"0",
36+
"8":"1",
37+
"9":"0",
38+
"10":"0",
39+
"11":"0",
40+
"12":"0",
41+
"13":"0",
42+
"14":"0",
43+
"15":"0",
44+
"16":"0",
45+
"17":"0",
46+
"18":"0",
47+
"19":"0",
48+
"20":"0",
49+
"21":"0",
50+
"22":"0",
51+
"23":"0",
52+
"24":"0",
53+
"25":"0",
54+
"26":"0",
55+
"27":"0",
56+
"28":"0",
57+
"29":"0",
58+
"30":"0",
59+
"31":"0",
60+
"32":"0",
61+
"33":"0",
62+
"34":"0",
63+
"35":"0",
64+
"36":"0",
65+
"37":"0",
66+
"38":"0",
67+
"39":"0",
68+
"40":"0",
69+
"41":"0",
70+
"42":"0",
71+
"43":"0",
72+
"44":"0",
73+
"45":"0",
74+
"46":"0",
75+
"47":"0",
76+
"48":"0",
77+
"49":"0",
78+
"50":"0",
79+
"51":"0",
80+
"52":"0",
81+
"53":"0",
82+
"54":"0",
83+
"55":"0",
84+
"56":"0",
85+
"57":"0",
86+
"58":"0",
87+
"59":"0",
88+
"60":"0",
89+
"61":"0",
90+
"62":"0",
91+
"63":"0"
92+
}
93+
},
94+
"SCHEDULER": {
95+
"scheduler.0" : {
96+
"type":"DWRR",
97+
"weight": "25"
98+
},
99+
"scheduler.1" : {
100+
"type":"DWRR",
101+
"weight": "30"
102+
},
103+
"scheduler.2" : {
104+
"type":"DWRR",
105+
"weight": "20"
106+
}
107+
},
108+
"PORT_QOS_MAP": {
109+
"Ethernet0,Ethernet1,Ethernet2,Ethernet3,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124": {
110+
"dscp_to_tc_map" : "[DSCP_TO_TC_MAP|AZURE]",
111+
"tc_to_queue_map" : "[TC_TO_QUEUE_MAP|AZURE]",
112+
"tc_to_pg_map" : "[TC_TO_PRIORITY_GROUP_MAP|AZURE]",
113+
"pfc_to_queue_map": "[MAP_PFC_PRIORITY_TO_QUEUE|AZURE]",
114+
"pfc_enable": "3,4"
115+
}
116+
},
117+
"WRED_PROFILE": {
118+
"AZURE_LOSSLESS" : {
119+
"wred_green_enable":"true",
120+
"wred_yellow_enable":"true",
121+
"wred_red_enable":"true",
122+
"ecn":"ecn_all",
123+
"red_max_threshold":"312000",
124+
"red_min_threshold":"104000",
125+
"yellow_max_threshold":"312000",
126+
"yellow_min_threshold":"104000",
127+
"green_max_threshold":"312000",
128+
"green_min_threshold":"104000"
129+
}
130+
},
131+
"QUEUE": {
132+
"Ethernet0,Ethernet1,Ethernet2,Ethernet3,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124|3-4" : {
133+
"scheduler" : "[SCHEDULER|scheduler.0]"
134+
},
135+
"Ethernet0,Ethernet1,Ethernet2,Ethernet3,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124|3" : {
136+
"wred_profile" : "[WRED_PROFILE|AZURE_LOSSLESS]"
137+
},
138+
"Ethernet0,Ethernet1,Ethernet2,Ethernet3,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124|4" : {
139+
"wred_profile" : "[WRED_PROFILE|AZURE_LOSSLESS]"
140+
},
141+
"Ethernet0,Ethernet1,Ethernet2,Ethernet3,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124|0" : {
142+
"scheduler" : "[SCHEDULER|scheduler.1]"
143+
},
144+
"Ethernet0,Ethernet1,Ethernet2,Ethernet3,Ethernet4,Ethernet8,Ethernet12,Ethernet16,Ethernet20,Ethernet24,Ethernet28,Ethernet32,Ethernet36,Ethernet40,Ethernet44,Ethernet48,Ethernet52,Ethernet56,Ethernet60,Ethernet64,Ethernet68,Ethernet72,Ethernet76,Ethernet80,Ethernet84,Ethernet88,Ethernet92,Ethernet96,Ethernet100,Ethernet104,Ethernet108,Ethernet112,Ethernet116,Ethernet120,Ethernet124|1" : {
145+
"scheduler" : "[SCHEDULER|scheduler.2]"
146+
}
147+
}
148+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/td2-a7050-q31s4-31x40G-4x10G.config.bcm

0 commit comments

Comments
 (0)