Skip to content

Commit 27a6641

Browse files
authored
[QoS, Buffer template][new HW SKU] Add qos config and buffer profile for Arista SKU (#8380)
1 parent 1509f43 commit 27a6641

File tree

4 files changed

+112
-0
lines changed

4 files changed

+112
-0
lines changed
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,66 @@
1+
2+
{%- set default_cable = '5m' %}
3+
4+
{%- macro generate_port_lists(PORT_ALL) %}
5+
{# Generate list of ports #}
6+
{%- for port_idx in range(0,192,4) %}
7+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx)) %}{%- endif %}
8+
{%- endfor %}
9+
{%- endmacro %}
10+
11+
{%- macro generate_buffer_pool_and_profiles() %}
12+
"BUFFER_POOL": {
13+
"ingress_lossless_pool": {
14+
"size": "3220805000",
15+
"type": "both",
16+
"mode": "dynamic",
17+
"xoff": "2102272"
18+
}
19+
},
20+
"BUFFER_PROFILE": {
21+
"ingress_lossless_profile": {
22+
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
23+
"size":"1280",
24+
"dynamic_th":"-2",
25+
"xon_offset":"2560",
26+
"xon":"0",
27+
"xoff":"66048"
28+
},
29+
"ingress_lossy_profile": {
30+
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
31+
"size":"0",
32+
"xon_offset":"0",
33+
"static_th":"30535680"
34+
},
35+
"egress_lossless_profile": {
36+
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
37+
"size":"0",
38+
"static_th":"33030144"
39+
},
40+
"egress_lossy_profile": {
41+
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
42+
"size":"0",
43+
"dynamic_th":"-1"
44+
}
45+
},
46+
{%- endmacro %}
47+
48+
{%- macro generate_queue_buffers(port_names) %}
49+
"BUFFER_QUEUE": {
50+
{% for port in port_names.split(',') %}
51+
"{{ port }}|3-4": {
52+
"profile" : "[BUFFER_PROFILE|ingress_lossless_profile]"
53+
},
54+
{% endfor %}
55+
{% for port in port_names.split(',') %}
56+
"{{ port }}|0-2": {
57+
"profile" : "[BUFFER_PROFILE|egress_lossy_profile]"
58+
},
59+
{% endfor %}
60+
{% for port in port_names.split(',') %}
61+
"{{ port }}|5-6": {
62+
"profile" : "[BUFFER_PROFILE|egress_lossy_profile]"
63+
}{% if not loop.last %},{% endif %}
64+
{% endfor %}
65+
}
66+
{%- endmacro %}
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 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
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
21+
{%- include 'qos_config.j2' %}

0 commit comments

Comments
 (0)