forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Arista] add MMU configuration for Arista 7260 C64 (sonic-net#7027)
Signed-off-by: Ying Xie <ying.xie@microsoft.com>
- Loading branch information
1 parent
6855da4
commit eed774c
Showing
9 changed files
with
1,135 additions
and
2 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-C64/buffers.json.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{%- set default_topo = 't1' %} | ||
{%- include 'buffers_config.j2' %} | ||
|
46 changes: 46 additions & 0 deletions
46
device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-C64/buffers_defaults_t0.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{%- set default_cable = '5m' %} | ||
|
||
{%- macro generate_port_lists(PORT_ALL) %} | ||
{# Generate list of ports #} | ||
{%- for port_idx in range(0,64) %} | ||
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %} | ||
{%- endfor %} | ||
{%- endmacro %} | ||
|
||
{%- macro generate_buffer_pool_and_profiles() %} | ||
"BUFFER_POOL": { | ||
"ingress_lossless_pool": { | ||
"size": "33329088", | ||
"type": "ingress", | ||
"mode": "dynamic", | ||
"xoff": "7827456" | ||
}, | ||
"egress_lossy_pool": { | ||
"size": "26663272", | ||
"type": "egress", | ||
"mode": "dynamic" | ||
}, | ||
"egress_lossless_pool": { | ||
"size": "42349632", | ||
"type": "egress", | ||
"mode": "static" | ||
} | ||
}, | ||
"BUFFER_PROFILE": { | ||
"ingress_lossy_profile": { | ||
"pool":"[BUFFER_POOL|ingress_lossless_pool]", | ||
"size":"0", | ||
"static_th":"44302336" | ||
}, | ||
"egress_lossless_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossless_pool]", | ||
"size":"0", | ||
"static_th":"42349632" | ||
}, | ||
"egress_lossy_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossy_pool]", | ||
"size":"1664", | ||
"dynamic_th":"-1" | ||
} | ||
}, | ||
{%- endmacro %} |
46 changes: 46 additions & 0 deletions
46
device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-C64/buffers_defaults_t1.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{%- set default_cable = '300m' %} | ||
|
||
{%- macro generate_port_lists(PORT_ALL) %} | ||
{# Generate list of ports #} | ||
{%- for port_idx in range(0,64) %} | ||
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %} | ||
{%- endfor %} | ||
{%- endmacro %} | ||
|
||
{%- macro generate_buffer_pool_and_profiles() %} | ||
"BUFFER_POOL": { | ||
"ingress_lossless_pool": { | ||
"size": "33329088", | ||
"type": "ingress", | ||
"mode": "dynamic", | ||
"xoff": "7827456" | ||
}, | ||
"egress_lossy_pool": { | ||
"size": "26663272", | ||
"type": "egress", | ||
"mode": "dynamic" | ||
}, | ||
"egress_lossless_pool": { | ||
"size": "42349632", | ||
"type": "egress", | ||
"mode": "static" | ||
} | ||
}, | ||
"BUFFER_PROFILE": { | ||
"ingress_lossy_profile": { | ||
"pool":"[BUFFER_POOL|ingress_lossless_pool]", | ||
"size":"0", | ||
"static_th":"44302336" | ||
}, | ||
"egress_lossless_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossless_pool]", | ||
"size":"0", | ||
"static_th":"42349632" | ||
}, | ||
"egress_lossy_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossy_pool]", | ||
"size":"1664", | ||
"dynamic_th":"-1" | ||
} | ||
}, | ||
{%- endmacro %} |
8 changes: 8 additions & 0 deletions
8
device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-C64/pg_profile_lookup.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# PG lossless profiles. | ||
# speed cable size xon xoff threshold xon_offset | ||
50000 5m 1248 1248 56160 -3 2496 | ||
100000 5m 1248 1248 96928 -3 2496 | ||
50000 40m 1248 1248 96096 -3 2496 | ||
100000 40m 1248 1248 177632 -3 2496 | ||
50000 300m 1248 1248 141856 -3 2496 | ||
100000 300m 1248 1248 268736 -3 2496 |
1 change: 1 addition & 0 deletions
1
device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-C64/qos.json.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{%- include 'qos_config.j2' %} |
2 changes: 0 additions & 2 deletions
2
device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-C64/sai.profile
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-C64/sai.profile.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{# Get sai.profile based on switch_role #} | ||
{%- if DEVICE_METADATA is defined -%} | ||
{%- set switch_role = DEVICE_METADATA['localhost']['type'] -%} | ||
{%- if 'torrouter' in switch_role.lower() or 'torswitch' in switch_role.lower() %} | ||
{% set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th2-a7260cx3-64-64x100G-t0.config.bcm' -%} | ||
{%- else %} | ||
{% set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th2-a7260cx3-64-64x100G-t1.config.bcm' -%} | ||
{%- endif %} | ||
{%- else %} | ||
{% set sai_profile_contents = 'SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th2-a7260cx3-64-64x100G-t1.config.bcm' -%} | ||
{%- endif %} | ||
{# Write the contents of sai_ profile_filename to sai.profile file #} | ||
{{ sai_profile_contents }} | ||
SAI_NUM_ECMP_MEMBERS=64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.