Skip to content

Commit 9814547

Browse files
authored
Updated Chassis MMU settings for 40G/100G/400G line cards (sonic-net#11108)
* Updated Chassis MMU settings for 40G/100G/400G line cards
1 parent 699c4e5 commit 9814547

File tree

26 files changed

+838
-646
lines changed

26 files changed

+838
-646
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,37 @@
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,192,4) %}
6-
{%- if PORT_ALL.append("Ethernet%d" % (port_idx)) %}{%- endif %}
7-
{%- endfor %}
8-
{%- endmacro %}
9-
10-
{%- macro generate_buffer_pool_and_profiles() %}
11-
"BUFFER_POOL": {
12-
"ingress_lossless_pool": {
13-
"size": "3220805000",
14-
"type": "both",
15-
"mode": "dynamic",
16-
"xoff": "2102272"
17-
}
18-
},
19-
"BUFFER_PROFILE": {
20-
"ingress_lossless_profile": {
21-
"pool":"ingress_lossless_pool",
22-
"size":"1280",
23-
"dynamic_th":"-2",
24-
"xon_offset":"2560",
25-
"xon":"0",
26-
"xoff":"66048"
27-
},
28-
"ingress_lossy_profile": {
29-
"pool":"ingress_lossless_pool",
30-
"size":"0",
31-
"xon_offset":"0",
32-
"static_th":"30535680"
33-
},
34-
"egress_lossless_profile": {
35-
"pool":"ingress_lossless_pool",
36-
"size":"0",
37-
"static_th":"33030144"
38-
},
39-
"egress_lossy_profile": {
40-
"pool":"ingress_lossless_pool",
41-
"size":"0",
42-
"dynamic_th":"-1"
43-
}
44-
},
45-
{%- endmacro %}
46-
47-
{%- macro generate_queue_buffers(port_names) %}
48-
"BUFFER_QUEUE": {
49-
{% for port in port_names.split(',') %}
50-
"{{ port }}|3-4": {
51-
"profile" : "ingress_lossless_profile"
52-
},
53-
{% endfor %}
54-
{% for port in port_names.split(',') %}
55-
"{{ port }}|0-2": {
56-
"profile" : "egress_lossy_profile"
57-
},
58-
{% endfor %}
59-
{% for port in port_names.split(',') %}
60-
"{{ port }}|5-6": {
61-
"profile" : "egress_lossy_profile"
62-
}{% if not loop.last %},{% endif %}
63-
{% endfor %}
64-
}
65-
{%- endmacro %}
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,192,4) %}
6+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx)) %}{%- endif %}
7+
{%- endfor %}
8+
{%- endmacro %}
9+
10+
{%- macro generate_buffer_pool_and_profiles() %}
11+
"BUFFER_POOL": {
12+
"ingress_lossless_pool": {
13+
"size": "6441610000",
14+
"type": "both",
15+
"mode": "dynamic",
16+
"xoff": "11678515"
17+
}
18+
},
19+
"BUFFER_PROFILE": {
20+
"ingress_lossy_profile": {
21+
"pool":"ingress_lossless_pool",
22+
"size":"1280",
23+
"xon_offset": "2560",
24+
"dynamic_th":"0"
25+
},
26+
"egress_lossless_profile": {
27+
"pool":"ingress_lossless_pool",
28+
"size":"0",
29+
"static_th":"33030144"
30+
},
31+
"egress_lossy_profile": {
32+
"pool":"ingress_lossless_pool",
33+
"size":"0",
34+
"dynamic_th":"-1"
35+
}
36+
},
37+
{%- endmacro %}
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
1-
# PG lossless profiles.
2-
# speed cable size xon xoff threshold xon_offset
3-
10000 5m 1280 2560 45506 0 1280
4-
25000 5m 1280 2560 49152 0 1280
5-
40000 5m 1280 2560 49152 0 1280
6-
50000 5m 1280 2560 53248 0 1280
7-
100000 5m 1280 2560 65536 0 1280
8-
200000 5m 1280 2560 90112 0 1280
9-
400000 5m 1280 2560 135168 0 1280
10-
10000 40m 1280 2560 45506 0 1280
11-
25000 40m 1280 2560 49152 0 1280
12-
40000 40m 1280 2560 53248 0 1280
13-
50000 40m 1280 2560 57344 0 1280
14-
100000 40m 1280 2560 69632 0 1280
15-
200000 40m 1280 2560 102400 0 1280
16-
400000 40m 1280 2560 159744 0 1280
17-
10000 300m 1280 2560 49152 0 1280
18-
25000 300m 1280 2560 61440 0 1280
19-
40000 300m 1280 2560 69632 0 1280
20-
50000 300m 1280 2560 77824 0 1280
21-
100000 300m 1280 2560 114688 0 1280
22-
200000 300m 1280 2560 188416 0 1280
23-
400000 300m 1280 2560 331776 0 1280
1+
# PG lossless profiles.
2+
# speed cable size xon xoff threshold xon_offset
3+
40000 300m 1280 2560 69632 0 1280
4+
100000 300m 1280 2560 110592 0 1280
5+
400000 300m 1280 2560 315392 0 1280
6+
40000 1000m 1280 2560 114688 0 1280
7+
100000 1000m 1280 2560 225280 0 1280
8+
400000 1000m 1280 2560 778240 0 1280
9+
40000 2000m 1280 2560 184320 0 1280
10+
100000 2000m 1280 2560 393216 0 1280
11+
400000 2000m 1280 2560 1445888 0 1280
12+
40000 80000m 1280 2560 5369856 0 1280
13+
100000 80000m 1280 2560 13357056 0 1280
14+
400000 80000m 1280 2560 53305344 0 1280
15+
40000 120000m 1280 2560 8028160 0 1280
16+
100000 120000m 1280 2560 20004864 0 1280
17+
400000 120000m 1280 2560 79900672 0 1280
Original file line numberDiff line numberDiff line change
@@ -1,21 +1 @@
1-
{%- macro generate_wred_profiles() %}
2-
"WRED_PROFILE": {
3-
"AZURE_LOSSLESS" : {
4-
"wred_green_enable" : "true",
5-
"wred_yellow_enable" : "true",
6-
"wred_red_enable" : "true",
7-
"ecn" : "ecn_all",
8-
"green_max_threshold" : "2097152",
9-
"green_min_threshold" : "250000",
10-
"yellow_max_threshold" : "2097152",
11-
"yellow_min_threshold" : "1048576",
12-
"red_max_threshold" : "2097152",
13-
"red_min_threshold" : "1048576",
14-
"green_drop_probability" : "5",
15-
"yellow_drop_probability": "5",
16-
"red_drop_probability" : "5"
17-
}
18-
},
19-
{%- endmacro %}
20-
211
{%- include 'qos_config.j2' %}
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,37 @@
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,192,4) %}
6-
{%- if PORT_ALL.append("Ethernet%d" % (port_idx)) %}{%- endif %}
7-
{%- endfor %}
8-
{%- endmacro %}
9-
10-
{%- macro generate_buffer_pool_and_profiles() %}
11-
"BUFFER_POOL": {
12-
"ingress_lossless_pool": {
13-
"size": "3220805000",
14-
"type": "both",
15-
"mode": "dynamic",
16-
"xoff": "2102272"
17-
}
18-
},
19-
"BUFFER_PROFILE": {
20-
"ingress_lossless_profile": {
21-
"pool":"ingress_lossless_pool",
22-
"size":"1280",
23-
"dynamic_th":"-2",
24-
"xon_offset":"2560",
25-
"xon":"0",
26-
"xoff":"66048"
27-
},
28-
"ingress_lossy_profile": {
29-
"pool":"ingress_lossless_pool",
30-
"size":"0",
31-
"xon_offset":"0",
32-
"static_th":"30535680"
33-
},
34-
"egress_lossless_profile": {
35-
"pool":"ingress_lossless_pool",
36-
"size":"0",
37-
"static_th":"33030144"
38-
},
39-
"egress_lossy_profile": {
40-
"pool":"ingress_lossless_pool",
41-
"size":"0",
42-
"dynamic_th":"-1"
43-
}
44-
},
45-
{%- endmacro %}
46-
47-
{%- macro generate_queue_buffers(port_names) %}
48-
"BUFFER_QUEUE": {
49-
{% for port in port_names.split(',') %}
50-
"{{ port }}|3-4": {
51-
"profile" : "ingress_lossless_profile"
52-
},
53-
{% endfor %}
54-
{% for port in port_names.split(',') %}
55-
"{{ port }}|0-2": {
56-
"profile" : "egress_lossy_profile"
57-
},
58-
{% endfor %}
59-
{% for port in port_names.split(',') %}
60-
"{{ port }}|5-6": {
61-
"profile" : "egress_lossy_profile"
62-
}{% if not loop.last %},{% endif %}
63-
{% endfor %}
64-
}
65-
{%- endmacro %}
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,192,4) %}
6+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx)) %}{%- endif %}
7+
{%- endfor %}
8+
{%- endmacro %}
9+
10+
{%- macro generate_buffer_pool_and_profiles() %}
11+
"BUFFER_POOL": {
12+
"ingress_lossless_pool": {
13+
"size": "6441610000",
14+
"type": "both",
15+
"mode": "dynamic",
16+
"xoff": "11678515"
17+
}
18+
},
19+
"BUFFER_PROFILE": {
20+
"ingress_lossy_profile": {
21+
"pool":"ingress_lossless_pool",
22+
"size":"1280",
23+
"xon_offset": "2560",
24+
"dynamic_th":"0"
25+
},
26+
"egress_lossless_profile": {
27+
"pool":"ingress_lossless_pool",
28+
"size":"0",
29+
"static_th":"33030144"
30+
},
31+
"egress_lossy_profile": {
32+
"pool":"ingress_lossless_pool",
33+
"size":"0",
34+
"dynamic_th":"-1"
35+
}
36+
},
37+
{%- endmacro %}
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
1-
# PG lossless profiles.
2-
# speed cable size xon xoff threshold xon_offset
3-
10000 5m 1280 2560 45506 0 1280
4-
25000 5m 1280 2560 49152 0 1280
5-
40000 5m 1280 2560 49152 0 1280
6-
50000 5m 1280 2560 53248 0 1280
7-
100000 5m 1280 2560 65536 0 1280
8-
200000 5m 1280 2560 90112 0 1280
9-
400000 5m 1280 2560 135168 0 1280
10-
10000 40m 1280 2560 45506 0 1280
11-
25000 40m 1280 2560 49152 0 1280
12-
40000 40m 1280 2560 53248 0 1280
13-
50000 40m 1280 2560 57344 0 1280
14-
100000 40m 1280 2560 69632 0 1280
15-
200000 40m 1280 2560 102400 0 1280
16-
400000 40m 1280 2560 159744 0 1280
17-
10000 300m 1280 2560 49152 0 1280
18-
25000 300m 1280 2560 61440 0 1280
19-
40000 300m 1280 2560 69632 0 1280
20-
50000 300m 1280 2560 77824 0 1280
21-
100000 300m 1280 2560 114688 0 1280
22-
200000 300m 1280 2560 188416 0 1280
23-
400000 300m 1280 2560 331776 0 1280
1+
# PG lossless profiles.
2+
# speed cable size xon xoff threshold xon_offset
3+
40000 300m 1280 2560 69632 0 1280
4+
100000 300m 1280 2560 110592 0 1280
5+
400000 300m 1280 2560 315392 0 1280
6+
40000 1000m 1280 2560 114688 0 1280
7+
100000 1000m 1280 2560 225280 0 1280
8+
400000 1000m 1280 2560 778240 0 1280
9+
40000 2000m 1280 2560 184320 0 1280
10+
100000 2000m 1280 2560 393216 0 1280
11+
400000 2000m 1280 2560 1445888 0 1280
12+
40000 80000m 1280 2560 5369856 0 1280
13+
100000 80000m 1280 2560 13357056 0 1280
14+
400000 80000m 1280 2560 53305344 0 1280
15+
40000 120000m 1280 2560 8028160 0 1280
16+
100000 120000m 1280 2560 20004864 0 1280
17+
400000 120000m 1280 2560 79900672 0 1280
Original file line numberDiff line numberDiff line change
@@ -1,21 +1 @@
1-
{%- macro generate_wred_profiles() %}
2-
"WRED_PROFILE": {
3-
"AZURE_LOSSLESS" : {
4-
"wred_green_enable" : "true",
5-
"wred_yellow_enable" : "true",
6-
"wred_red_enable" : "true",
7-
"ecn" : "ecn_all",
8-
"green_max_threshold" : "2097152",
9-
"green_min_threshold" : "250000",
10-
"yellow_max_threshold" : "2097152",
11-
"yellow_min_threshold" : "1048576",
12-
"red_max_threshold" : "2097152",
13-
"red_min_threshold" : "1048576",
14-
"green_drop_probability" : "5",
15-
"yellow_drop_probability": "5",
16-
"red_drop_probability" : "5"
17-
}
18-
},
19-
{%- endmacro %}
20-
211
{%- include 'qos_config.j2' %}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{%- set default_topo = 't2' %}
2+
{%- include 'buffers_config.j2' %}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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,144,4) %}
6+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx)) %}{%- endif %}
7+
{%- endfor %}
8+
{%- endmacro %}
9+
10+
{%- macro generate_buffer_pool_and_profiles() %}
11+
"BUFFER_POOL": {
12+
"ingress_lossless_pool": {
13+
"size": "6441610000",
14+
"type": "both",
15+
"mode": "dynamic",
16+
"xoff": "11354112"
17+
}
18+
},
19+
"BUFFER_PROFILE": {
20+
"ingress_lossy_profile": {
21+
"pool":"ingress_lossless_pool",
22+
"size":"1280",
23+
"xon_offset": "2560",
24+
"dynamic_th":"0"
25+
},
26+
"egress_lossless_profile": {
27+
"pool":"ingress_lossless_pool",
28+
"size":"0",
29+
"static_th":"33030144"
30+
},
31+
"egress_lossy_profile": {
32+
"pool":"ingress_lossless_pool",
33+
"size":"0",
34+
"dynamic_th":"-1"
35+
}
36+
},
37+
{%- 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+
40000 300m 1280 2560 69632 0 1280
4+
100000 300m 1280 2560 110592 0 1280
5+
400000 300m 1280 2560 315392 0 1280
6+
40000 1000m 1280 2560 114688 0 1280
7+
100000 1000m 1280 2560 225280 0 1280
8+
400000 1000m 1280 2560 778240 0 1280
9+
40000 2000m 1280 2560 184320 0 1280
10+
100000 2000m 1280 2560 393216 0 1280
11+
400000 2000m 1280 2560 1445888 0 1280
12+
40000 80000m 1280 2560 5369856 0 1280
13+
100000 80000m 1280 2560 13357056 0 1280
14+
400000 80000m 1280 2560 53305344 0 1280
15+
40000 120000m 1280 2560 8028160 0 1280
16+
100000 120000m 1280 2560 20004864 0 1280
17+
400000 120000m 1280 2560 79900672 0 1280
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{%- include 'qos_config.j2' %}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{%- set default_topo = 't2' %}
2+
{%- include 'buffers_config.j2' %}

0 commit comments

Comments
 (0)