Skip to content

Commit 832e635

Browse files
authored
[Arista] add MMU configuration for Arista 7260 C64 (#7027)
Signed-off-by: Ying Xie <[email protected]>
1 parent e8f4a8b commit 832e635

9 files changed

+1135
-2
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,46 @@
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,64) %}
6+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %}
7+
{%- endfor %}
8+
{%- endmacro %}
9+
10+
{%- macro generate_buffer_pool_and_profiles() %}
11+
"BUFFER_POOL": {
12+
"ingress_lossless_pool": {
13+
"size": "33329088",
14+
"type": "ingress",
15+
"mode": "dynamic",
16+
"xoff": "7827456"
17+
},
18+
"egress_lossy_pool": {
19+
"size": "26663272",
20+
"type": "egress",
21+
"mode": "dynamic"
22+
},
23+
"egress_lossless_pool": {
24+
"size": "42349632",
25+
"type": "egress",
26+
"mode": "static"
27+
}
28+
},
29+
"BUFFER_PROFILE": {
30+
"ingress_lossy_profile": {
31+
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
32+
"size":"0",
33+
"static_th":"44302336"
34+
},
35+
"egress_lossless_profile": {
36+
"pool":"[BUFFER_POOL|egress_lossless_pool]",
37+
"size":"0",
38+
"static_th":"42349632"
39+
},
40+
"egress_lossy_profile": {
41+
"pool":"[BUFFER_POOL|egress_lossy_pool]",
42+
"size":"1664",
43+
"dynamic_th":"-1"
44+
}
45+
},
46+
{%- endmacro %}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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,64) %}
6+
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %}
7+
{%- endfor %}
8+
{%- endmacro %}
9+
10+
{%- macro generate_buffer_pool_and_profiles() %}
11+
"BUFFER_POOL": {
12+
"ingress_lossless_pool": {
13+
"size": "33329088",
14+
"type": "ingress",
15+
"mode": "dynamic",
16+
"xoff": "7827456"
17+
},
18+
"egress_lossy_pool": {
19+
"size": "26663272",
20+
"type": "egress",
21+
"mode": "dynamic"
22+
},
23+
"egress_lossless_pool": {
24+
"size": "42349632",
25+
"type": "egress",
26+
"mode": "static"
27+
}
28+
},
29+
"BUFFER_PROFILE": {
30+
"ingress_lossy_profile": {
31+
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
32+
"size":"0",
33+
"static_th":"44302336"
34+
},
35+
"egress_lossless_profile": {
36+
"pool":"[BUFFER_POOL|egress_lossless_pool]",
37+
"size":"0",
38+
"static_th":"42349632"
39+
},
40+
"egress_lossy_profile": {
41+
"pool":"[BUFFER_POOL|egress_lossy_pool]",
42+
"size":"1664",
43+
"dynamic_th":"-1"
44+
}
45+
},
46+
{%- endmacro %}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# PG lossless profiles.
2+
# speed cable size xon xoff threshold xon_offset
3+
50000 5m 1248 1248 56160 -3 2496
4+
100000 5m 1248 1248 96928 -3 2496
5+
50000 40m 1248 1248 96096 -3 2496
6+
100000 40m 1248 1248 177632 -3 2496
7+
50000 300m 1248 1248 141856 -3 2496
8+
100000 300m 1248 1248 268736 -3 2496
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{%- include 'qos_config.j2' %}

device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-C64/sai.profile

-2
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{# Get sai.profile based on switch_role #}
2+
{%- if DEVICE_METADATA is defined -%}
3+
{%- set switch_role = DEVICE_METADATA['localhost']['type'] -%}
4+
{%- if 'torrouter' in switch_role.lower() or 'torswitch' in switch_role.lower() %}
5+
{% set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th2-a7260cx3-64-64x100G-t0.config.bcm' -%}
6+
{%- else %}
7+
{% set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th2-a7260cx3-64-64x100G-t1.config.bcm' -%}
8+
{%- endif %}
9+
{%- else %}
10+
{% set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th2-a7260cx3-64-64x100G-t1.config.bcm' -%}
11+
{%- endif %}
12+
{# Write the contents of sai_ profile_filename to sai.profile file #}
13+
{{ sai_profile_contents }}
14+
SAI_NUM_ECMP_MEMBERS=64

device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-C64/th2-a7260cx3-64-64x100G.config.bcm renamed to device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-C64/th2-a7260cx3-64-64x100G-t0.config.bcm

+2
Original file line numberDiff line numberDiff line change
@@ -1011,3 +1011,5 @@ serdes_preemphasis_114=0x174507
10111011
serdes_preemphasis_115=0x184606
10121012
serdes_preemphasis_116=0x103706
10131013
serdes_preemphasis_117=0x133c06
1014+
1015+
mmu_init_config="MSFT-TH2-Tier0"

0 commit comments

Comments
 (0)