Skip to content

Commit

Permalink
[Arista] Driver and platform update (sonic-net#6468)
Browse files Browse the repository at this point in the history
 - Add support for `DCS-7050SX3-48YC8` and `DCS-7050SX3-48C8` platform
 - Add support for more variants of `DCS-7280CR3-32[PD]4`
 - Add Supervisor to Linecard consutil support
 - Complete Watchdog platform API support
 - Fix some PSU behavior on `DCS-7050QX-32` and `DCS-7060CX-32S`
 - Fix SEU management on `DCS-7060CX-32S`
 - Allow kernel modules to build up to linux 5.10
 - Rename led color `orange` to `amber`
 - Miscellaneous fixes
  • Loading branch information
Staphylo committed Feb 24, 2021
1 parent 7c00106 commit abd6577
Show file tree
Hide file tree
Showing 33 changed files with 681 additions and 30 deletions.
1 change: 1 addition & 0 deletions device/arista/x86_64-arista_7050sx3_48c8
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{%- set default_topo = 't0' %}
{%- include 'buffers_config.j2' %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{%- set default_cable = '5m' %}

{%- macro generate_port_lists(PORT_ALL) %}
{# Generate list of ports #}
{%- for port_idx in range(0,28) %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4 + 2)) %}{%- endif %}
{%- endfor %}
{%- for port_idx in range(28,32) %}
{%- if PORT_ALL.append("Ethernet%d" % (port_idx * 4)) %}{%- endif %}
{%- endfor %}
{%- endmacro %}

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
"ingress_lossless_pool": {
"size": "10875072",
"type": "ingress",
"mode": "dynamic",
"xoff": "4194112"
},
"egress_lossy_pool": {
"size": "9243812",
"type": "egress",
"mode": "dynamic"
},
"egress_lossless_pool": {
"size": "15982720",
"type": "egress",
"mode": "static"
}
},
"BUFFER_PROFILE": {
"ingress_lossy_profile": {
"pool":"[BUFFER_POOL|ingress_lossless_pool]",
"size":"0",
"dynamic_th":"3"
},
"egress_lossless_profile": {
"pool":"[BUFFER_POOL|egress_lossless_pool]",
"size":"1518",
"static_th":"15982720"
},
"egress_lossy_profile": {
"pool":"[BUFFER_POOL|egress_lossy_pool]",
"size":"1518",
"dynamic_th":"3"
}
},
{%- 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
10000 5m 1248 2288 35776 0 2288
25000 5m 1248 2288 53248 0 2288
40000 5m 1248 2288 66560 0 2288
50000 5m 1248 2288 79872 0 2288
100000 5m 1248 2288 165568 0 2288
10000 40m 1248 2288 37024 0 2288
25000 40m 1248 2288 56160 0 2288
40000 40m 1248 2288 71552 0 2288
50000 40m 1248 2288 85696 0 2288
100000 40m 1248 2288 177632 0 2288
10000 300m 1248 2288 46176 0 2288
25000 300m 1248 2288 79040 0 2288
40000 300m 1248 2288 108160 0 2288
50000 300m 1248 2288 141856 0 2288
100000 300m 1248 2288 268736 0 2288
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# name lanes alias index speed
Ethernet0 1,2 Ethernet1/1 1 25000
Ethernet2 3,4 Ethernet1/3 1 25000
Ethernet4 5,6 Ethernet2/1 2 25000
Ethernet6 7,8 Ethernet2/3 2 25000
Ethernet8 9,10 Ethernet3/1 3 25000
Ethernet10 11,12 Ethernet3/3 3 25000
Ethernet12 13,14 Ethernet4/1 4 25000
Ethernet14 15,16 Ethernet4/3 4 25000
Ethernet16 21,22 Ethernet5/1 5 25000
Ethernet18 23,24 Ethernet5/3 5 25000
Ethernet20 17,18 Ethernet6/1 6 25000
Ethernet22 19,20 Ethernet6/3 6 25000
Ethernet24 25,26 Ethernet7/1 7 25000
Ethernet26 27,28 Ethernet7/3 7 25000
Ethernet28 29,30 Ethernet8/1 8 25000
Ethernet30 31,32 Ethernet8/3 8 25000
Ethernet32 37,38 Ethernet9/1 9 25000
Ethernet34 39,40 Ethernet9/3 9 25000
Ethernet36 33,34 Ethernet10/1 10 25000
Ethernet38 35,46 Ethernet10/3 10 25000
Ethernet40 41,42 Ethernet11/1 11 25000
Ethernet42 43,44 Ethernet11/3 11 25000
Ethernet44 45,46 Ethernet12/1 12 25000
Ethernet46 47,48 Ethernet12/3 12 25000
Ethernet48 53,54 Ethernet13/1 13 25000
Ethernet50 55,56 Ethernet13/3 13 25000
Ethernet52 49,50 Ethernet14/1 14 25000
Ethernet54 51,52 Ethernet14/3 14 25000
Ethernet56 57,58 Ethernet15/1 15 25000
Ethernet58 59,60 Ethernet15/3 15 25000
Ethernet60 61,62 Ethernet16/1 16 25000
Ethernet62 63,64 Ethernet16/3 16 25000
Ethernet64 69,70 Ethernet17/1 17 25000
Ethernet66 71,72 Ethernet17/3 17 25000
Ethernet68 65,66 Ethernet18/1 18 25000
Ethernet70 67,68 Ethernet18/3 18 25000
Ethernet72 73,74 Ethernet19/1 19 25000
Ethernet74 75,76 Ethernet19/3 19 25000
Ethernet76 77,78 Ethernet20/1 20 25000
Ethernet78 79,80 Ethernet20/3 20 25000
Ethernet80 85,86 Ethernet21/1 21 25000
Ethernet82 87,88 Ethernet21/3 21 25000
Ethernet84 81,82 Ethernet22/1 22 25000
Ethernet86 83,84 Ethernet22/3 22 25000
Ethernet88 89,90 Ethernet23/1 23 25000
Ethernet88 91,92 Ethernet23/3 23 25000
Ethernet92 93,94 Ethernet24/1 24 25000
Ethernet92 95,96 Ethernet24/3 24 25000
Ethernet96 101,102,103,104 Ethernet25/1 25 100000
Ethernet100 97,98,99,100 Ethernet26/1 26 100000
Ethernet104 105,106,107,108 Ethernet27/1 27 100000
Ethernet108 109,110,111,112 Ethernet28/1 28 100000
Ethernet112 117,118,119,120 Ethernet29/1 29 100000
Ethernet116 113,114,115,116 Ethernet30/1 30 100000
Ethernet120 121,122,123,124 Ethernet31/1 31 100000
Ethernet124 125,126,127,128 Ethernet32/1 32 100000
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{%- macro generate_wred_profiles() %}
"WRED_PROFILE": {
"AZURE_LOSSLESS" : {
"wred_green_enable" : "true",
"wred_yellow_enable" : "true",
"wred_red_enable" : "true",
"ecn" : "ecn_all",
"green_max_threshold" : "2097152",
"green_min_threshold" : "250000",
"yellow_max_threshold" : "2097152",
"yellow_min_threshold" : "1048576",
"red_max_threshold" : "2097152",
"red_min_threshold" : "1048576",
"green_drop_probability" : "5",
"yellow_drop_probability": "5",
"red_drop_probability" : "5"
}
},
{%- endmacro %}

{%- include 'qos_config.j2' %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/td3-a7050sx3_48yc8-48x25G+8x100G.config.bcm
SAI_NUM_ECMP_MEMBERS=64
Loading

0 comments on commit abd6577

Please sign in to comment.