Skip to content

Commit b564d5e

Browse files
vmittal-msftCarl Keene
authored and
Carl Keene
committed
MMU configuration for Z9332 systems in T0 and T1 topolgy (sonic-net#7973)
Why I did it MMU configuration for DellEMC Z9332 systems in T0/T1 topology How I did it Updated config.bcm, QoS/Buffer pool and lossy/lossless profile settings How to verify it Verified that Dell systems are booting up fine and basic test cases passing.
1 parent 645a4aa commit b564d5e

12 files changed

+232
-582
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
{%- set default_topo = 't1' %}
2-
{%- include 'buffers_config.j2' %}
1+
{%- set default_topo = 't0' %}
2+
{%- include 'buffers_config.j2' %}
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,57 @@
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-
1+
{%- set default_cable = '300m' %}
2+
3+
{%- macro generate_port_lists(PORT_ALL) %}
4+
{# Generate list of ports #}
5+
{%- for port_idx in range(0,12) %}
6+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 8)) %}{%- endif %}
7+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 2) + 2) %}{%- endif %}
8+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 2) + 4) %}{%- endif %}
9+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 2) + 6) %}{%- endif %}
10+
{%- endfor %}
11+
{%- for port_idx in range(12,16) %}
12+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 8)) %}{%- endif %}
13+
{%- endfor %}
14+
{%- for port_idx in range(16,20) %}
15+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 8)) %}{%- endif %}
16+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 2) + 2) %}{%- endif %}
17+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 2) + 4) %}{%- endif %}
18+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 2) + 6) %}{%- endif %}
19+
{%- endfor %}
20+
{%- for port_idx in range(20,32) %}
21+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 8)) %}{%- endif %}
22+
{%- endfor %}
23+
{%- endmacro %}
24+
25+
26+
{%- macro generate_buffer_pool_and_profiles() %}
27+
"BUFFER_POOL": {
28+
"ingress_lossless_pool": {
29+
"size": "66800476",
30+
"type": "ingress",
31+
"mode": "dynamic",
32+
"xoff": "8644128"
33+
},
34+
"egress_lossless_pool": {
35+
"size": "66800476",
36+
"type": "egress",
37+
"mode": "static"
38+
}
39+
},
40+
"BUFFER_PROFILE": {
41+
"ingress_lossy_profile": {
42+
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
43+
"size":"0",
44+
"static_th":"66800476"
45+
},
46+
"egress_lossless_profile": {
47+
"pool":"[BUFFER_POOL|egress_lossless_pool]",
48+
"size":"0",
49+
"static_th":"67117468"
50+
},
51+
"egress_lossy_profile": {
52+
"pool":"[BUFFER_POOL|egress_lossless_pool]",
53+
"size":"1778",
54+
"dynamic_th":"1"
55+
}
56+
},
57+
{%- endmacro %}
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,57 @@
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-
1+
{%- set default_cable = '300m' %}
2+
3+
{%- macro generate_port_lists(PORT_ALL) %}
4+
{# Generate list of ports #}
5+
{%- for port_idx in range(0,12) %}
6+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 8)) %}{%- endif %}
7+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 2) + 2) %}{%- endif %}
8+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 2) + 4) %}{%- endif %}
9+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 2) + 6) %}{%- endif %}
10+
{%- endfor %}
11+
{%- for port_idx in range(12,16) %}
12+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 8)) %}{%- endif %}
13+
{%- endfor %}
14+
{%- for port_idx in range(16,20) %}
15+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 8)) %}{%- endif %}
16+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 2) + 2) %}{%- endif %}
17+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 2) + 4) %}{%- endif %}
18+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 2) + 6) %}{%- endif %}
19+
{%- endfor %}
20+
{%- for port_idx in range(20,32) %}
21+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 8)) %}{%- endif %}
22+
{%- endfor %}
23+
{%- endmacro %}
24+
25+
26+
{%- macro generate_buffer_pool_and_profiles() %}
27+
"BUFFER_POOL": {
28+
"ingress_lossless_pool": {
29+
"size": "66800476",
30+
"type": "ingress",
31+
"mode": "dynamic",
32+
"xoff": "8644128"
33+
},
34+
"egress_lossless_pool": {
35+
"size": "66800476",
36+
"type": "egress",
37+
"mode": "static"
38+
}
39+
},
40+
"BUFFER_PROFILE": {
41+
"ingress_lossy_profile": {
42+
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
43+
"size":"0",
44+
"static_th":"66800476"
45+
},
46+
"egress_lossless_profile": {
47+
"pool":"[BUFFER_POOL|egress_lossless_pool]",
48+
"size":"0",
49+
"static_th":"67117468"
50+
},
51+
"egress_lossy_profile": {
52+
"pool":"[BUFFER_POOL|egress_lossless_pool]",
53+
"size":"1778",
54+
"dynamic_th":"1"
55+
}
56+
},
57+
{%- endmacro %}
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,12 @@
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
1+
# PG lossless profiles.
2+
# speed cable size xon xoff threshold xon_offset
3+
100000 5m 2540 2540 68580 -2 2540
4+
100000 40m 2540 2540 74422 -2 2540
5+
100000 300m 2540 2540 117348 -2 2540
6+
100000 1000m 2540 2540 233172 -2 2540
7+
100000 2000m 2540 2540 398526 -2 2540
8+
400000 5m 2540 2540 35776 -2 2540
9+
400000 40m 2540 2540 53248 -2 2540
10+
400000 300m 2540 2540 66560 -2 2540
11+
400000 1000m 2540 2540 79872 -2 2540
12+
400000 2000m 2540 2540 54528 -2 2540

0 commit comments

Comments
 (0)