Skip to content

Commit

Permalink
Add QOS profiles for Arista SKUs (#13829) (#14040)
Browse files Browse the repository at this point in the history
  • Loading branch information
mssonicbld authored Mar 2, 2023
1 parent 9b2aa95 commit ab6b3cd
Show file tree
Hide file tree
Showing 8 changed files with 114 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{%- set default_topo = 't2' %}
{%- include 'buffers_config.j2' %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{%- set default_cable = '300m' %}

{%- macro generate_port_lists(PORT_ALL) %}
{# Generate list of ports #}
{%- for port_idx in range(0,144,8) %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx)) %}{%- endif %}
{%- endfor %}
{%- endmacro %}

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "6441610000",
"type": "both",
"mode": "dynamic",
"xoff": "11354112"
}
},
"BUFFER_PROFILE": {
"ingress_lossy_profile": {
"pool":"ingress_lossless_pool",
"size":"1280",
"xon_offset": "2560",
"dynamic_th":"0"
},
"egress_lossless_profile": {
"pool":"ingress_lossless_pool",
"size":"0",
"static_th":"33030144"
},
"egress_lossy_profile": {
"pool":"ingress_lossless_pool",
"size":"0",
"dynamic_th":"-1"
}
},
{%- endmacro %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# PG lossless profiles.
# speed cable size xon xoff threshold xon_offset
40000 300m 1280 2560 69632 0 1280
100000 300m 1280 2560 110592 0 1280
400000 300m 1280 2560 315392 0 1280
40000 1000m 1280 2560 114688 0 1280
100000 1000m 1280 2560 225280 0 1280
400000 1000m 1280 2560 778240 0 1280
40000 2000m 1280 2560 184320 0 1280
100000 2000m 1280 2560 393216 0 1280
400000 2000m 1280 2560 1445888 0 1280
40000 80000m 1280 2560 5369856 0 1280
100000 80000m 1280 2560 13357056 0 1280
400000 80000m 1280 2560 53305344 0 1280
40000 120000m 1280 2560 8028160 0 1280
100000 120000m 1280 2560 20004864 0 1280
400000 120000m 1280 2560 79900672 0 1280
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{%- include 'qos_config.j2' %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{%- set default_topo = 't2' %}
{%- include 'buffers_config.j2' %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{%- set default_cable = '300m' %}

{%- macro generate_port_lists(PORT_ALL) %}
{# Generate list of ports #}
{%- for port_idx in range(144,288,8) %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx)) %}{%- endif %}
{%- endfor %}
{%- endmacro %}

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "6441610000",
"type": "both",
"mode": "dynamic",
"xoff": "11354112"
}
},
"BUFFER_PROFILE": {
"ingress_lossy_profile": {
"pool":"ingress_lossless_pool",
"size":"1280",
"xon_offset": "2560",
"dynamic_th":"0"
},
"egress_lossless_profile": {
"pool":"ingress_lossless_pool",
"size":"0",
"static_th":"33030144"
},
"egress_lossy_profile": {
"pool":"ingress_lossless_pool",
"size":"0",
"dynamic_th":"-1"
}
},
{%- endmacro %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# PG lossless profiles.
# speed cable size xon xoff threshold xon_offset
40000 300m 1280 2560 69632 0 1280
100000 300m 1280 2560 110592 0 1280
400000 300m 1280 2560 315392 0 1280
40000 1000m 1280 2560 114688 0 1280
100000 1000m 1280 2560 225280 0 1280
400000 1000m 1280 2560 778240 0 1280
40000 2000m 1280 2560 184320 0 1280
100000 2000m 1280 2560 393216 0 1280
400000 2000m 1280 2560 1445888 0 1280
40000 80000m 1280 2560 5369856 0 1280
100000 80000m 1280 2560 13357056 0 1280
400000 80000m 1280 2560 53305344 0 1280
40000 120000m 1280 2560 8028160 0 1280
100000 120000m 1280 2560 20004864 0 1280
400000 120000m 1280 2560 79900672 0 1280
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{%- include 'qos_config.j2' %}

0 comments on commit ab6b3cd

Please sign in to comment.