Skip to content

Commit

Permalink
[DellEMC Z9332F] New Sku support (16x400G+64x100G) (sonic-net#6091)
Browse files Browse the repository at this point in the history
* Add New port map for TH3
* Add LED and other npu related files
  • Loading branch information
srideepDell authored Dec 9, 2020
1 parent 68febe6 commit fb83550
Show file tree
Hide file tree
Showing 12 changed files with 3,428 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{%- set default_topo = 't1' %}
{%- include 'buffers_config.j2' %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

{%- set default_cable = '40m' %}

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
},
"BUFFER_PROFILE": {
},
{%- endmacro %}

{%- macro generate_pg_profils(port_names_active) %}
"BUFFER_PG": {
},
{%- endmacro %}

{% macro generate_queue_buffers(port_names_active) %}
"BUFFER_QUEUE": {
}
{% endmacro %}

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

{%- set default_cable = '40m' %}

{%- macro generate_buffer_pool_and_profiles() %}
"BUFFER_POOL": {
},
"BUFFER_PROFILE": {
},
{%- endmacro %}

{%- macro generate_pg_profils(port_names_active) %}
"BUFFER_PG": {
},
{%- endmacro %}

{% macro generate_queue_buffers(port_names_active) %}
"BUFFER_QUEUE": {
}
{% endmacro %}

Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# PG lossless profiles.
# speed cable size xon xoff threshold xon_offset
10000 5m 1270 0 190500 -2 2540
25000 5m 1270 0 190500 -2 2540
40000 5m 1270 0 190500 -2 2540
50000 5m 1270 0 190500 -2 2540
100000 5m 1270 0 190500 -2 2540
200000 5m 1270 0 190500 -2 2540
400000 5m 1270 0 190500 -2 2540
10000 40m 1270 0 190500 -2 2540
25000 40m 1270 0 190500 -2 2540
40000 40m 1270 0 190500 -2 2540
50000 40m 1270 0 190500 -2 2540
100000 40m 1270 0 190500 -2 2540
200000 40m 1270 0 190500 -2 2540
400000 40m 1270 0 190500 -2 2540
10000 300m 1270 0 190500 -2 2540
25000 300m 1270 0 190500 -2 2540
40000 300m 1270 0 190500 -2 2540
50000 300m 1270 0 190500 -2 2540
100000 300m 1270 0 190500 -2 2540
200000 300m 1270 0 190500 -2 2540
400000 300m 1270 0 190500 -2 2540
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# name lanes alias index speed
Ethernet0 33,34 hundredGigE1/1/1 1 100000
Ethernet2 35,36 hundredGigE1/1/2 1 100000
Ethernet4 37,38 hundredGigE1/1/3 1 100000
Ethernet6 39,40 hundredGigE1/1/4 1 100000
Ethernet8 41,42 hundredGigE1/2/1 2 100000
Ethernet10 43,44 hundredGigE1/2/2 2 100000
Ethernet12 45,46 hundredGigE1/2/3 2 100000
Ethernet14 47,48 hundredGigE1/2/4 2 100000
Ethernet16 49,50 hundredGigE1/3/1 3 100000
Ethernet18 51,52 hundredGigE1/3/2 3 100000
Ethernet20 53,54 hundredGigE1/3/3 3 100000
Ethernet22 55,56 hundredGigE1/3/4 3 100000
Ethernet24 57,58 hundredGigE1/4/1 4 100000
Ethernet26 59,60 hundredGigE1/4/2 4 100000
Ethernet28 61,62 hundredGigE1/4/3 4 100000
Ethernet30 63,64 hundredGigE1/4/4 4 100000
Ethernet32 65,66,67,68,69,70,71,72 fourhundredGigE1/5 5 400000
Ethernet40 73,74,75,76,77,78,79,80 fourhundredGigE1/6 6 400000
Ethernet48 81,82,83,84,85,86,87,88 fourhundredGigE1/7 7 400000
Ethernet56 89,90,91,92,93,94,95,96 fourhundredGigE1/8 8 400000
Ethernet64 1,2 hundredGigE1/9/1 9 100000
Ethernet66 3,4 hundredGigE1/9/2 9 100000
Ethernet68 5,6 hundredGigE1/9/3 9 100000
Ethernet70 7,8 hundredGigE1/9/4 9 100000
Ethernet72 9,10 hundredGigE1/10/1 10 100000
Ethernet74 11,12 hundredGigE1/10/2 10 100000
Ethernet76 13,14 hundredGigE1/10/3 10 100000
Ethernet78 15,16 hundredGigE1/10/4 10 100000
Ethernet80 17,18 hundredGigE1/11/1 11 100000
Ethernet82 19,20 hundredGigE1/11/2 11 100000
Ethernet84 21,22 hundredGigE1/11/3 11 100000
Ethernet86 23,24 hundredGigE1/11/4 11 100000
Ethernet88 25,26 hundredGigE1/12/1 12 100000
Ethernet90 27,28 hundredGigE1/12/2 12 100000
Ethernet92 29,30 hundredGigE1/12/3 12 100000
Ethernet94 31,32 hundredGigE1/12/4 12 100000
Ethernet96 97,98,99,100,101,102,103,104 fourhundredGigE1/13 13 400000
Ethernet104 105,106,107,108,109,110,111,112 fourhundredGigE1/14 14 400000
Ethernet112 113,114,115,116,117,118,119,120 fourhundredGigE1/15 15 400000
Ethernet120 121,122,123,124,125,126,127,128 fourhundredGigE1/16 16 400000
Ethernet128 129,130,131,132,133,134,135,136 fourhundredGigE1/17 17 400000
Ethernet136 137,138,139,140,141,142,143,144 fourhundredGigE1/18 18 400000
Ethernet144 145,146,147,148,149,150,151,152 fourhundredGigE1/19 19 400000
Ethernet152 153,154,155,156,157,158,159,160 fourhundredGigE1/20 20 400000
Ethernet160 225,226 hundredGigE1/21/1 21 100000
Ethernet162 227,228 hundredGigE1/21/2 21 100000
Ethernet164 229,230 hundredGigE1/21/3 21 100000
Ethernet166 231,232 hundredGigE1/21/4 21 100000
Ethernet168 233,234 hundredGigE1/22/1 22 100000
Ethernet170 235,236 hundredGigE1/22/2 22 100000
Ethernet172 237,238 hundredGigE1/22/3 22 100000
Ethernet174 239,240 hundredGigE1/22/4 22 100000
Ethernet176 241,242 hundredGigE1/23/1 23 100000
Ethernet178 243,244 hundredGigE1/23/2 23 100000
Ethernet180 245,246 hundredGigE1/23/3 23 100000
Ethernet182 247,248 hundredGigE1/23/4 23 100000
Ethernet184 249,250 hundredGigE1/24/1 24 100000
Ethernet186 251,252 hundredGigE1/24/2 24 100000
Ethernet188 253,254 hundredGigE1/24/3 24 100000
Ethernet190 255,256 hundredGigE1/24/4 24 100000
Ethernet192 161,162,163,164,165,166,167,168 fourhundredGigE1/25 25 400000
Ethernet200 169,170,171,172,173,174,175,176 fourhundredGigE1/26 26 400000
Ethernet208 177,178,179,180,181,182,183,184 fourhundredGigE1/27 27 400000
Ethernet216 185,186,187,188,189,190,191,192 fourhundredGigE1/28 28 400000
Ethernet224 193,194 hundredGigE1/29/1 29 100000
Ethernet226 195,196 hundredGigE1/29/2 29 100000
Ethernet228 197,198 hundredGigE1/29/3 29 100000
Ethernet230 199,200 hundredGigE1/29/4 29 100000
Ethernet232 201,202 hundredGigE1/30/1 30 100000
Ethernet234 203,204 hundredGigE1/30/2 30 100000
Ethernet236 205,206 hundredGigE1/30/3 30 100000
Ethernet238 207,208 hundredGigE1/30/4 30 100000
Ethernet240 209,210 hundredGigE1/31/1 31 100000
Ethernet242 211,212 hundredGigE1/31/2 31 100000
Ethernet244 213,214 hundredGigE1/31/3 31 100000
Ethernet246 215,216 hundredGigE1/31/4 31 100000
Ethernet248 217,218 hundredGigE1/32/1 32 100000
Ethernet250 219,220 hundredGigE1/32/2 32 100000
Ethernet252 221,222 hundredGigE1/32/3 32 100000
Ethernet254 223,224 hundredGigE1/32/4 32 100000
Ethernet256 257 tenGigE1/33 33 10000
Ethernet257 258 tenGigE1/34 34 10000
Original file line number Diff line number Diff line change
@@ -0,0 +1,226 @@
{%- set PORT_ALL = [] %}
{%- for port in PORT %}
{%- if PORT_ALL.append(port) %}{% endif %}
{%- endfor %}
{%- if PORT_ALL | sort_by_port_index %}{% endif %}

{%- set port_names_list_all = [] %}
{%- for port in PORT_ALL %}
{%- if port_names_list_all.append(port) %}{% endif %}
{%- endfor %}
{%- set port_names_all = port_names_list_all | join(',') -%}


{%- set PORT_ACTIVE = [] %}
{%- if DEVICE_NEIGHBOR is not defined %}
{%- set PORT_ACTIVE = PORT_ALL %}
{%- else %}
{%- for port in DEVICE_NEIGHBOR.keys() %}
{%- if PORT_ACTIVE.append(port) %}{%- endif %}
{%- endfor %}
{%- endif %}
{%- if PORT_ACTIVE | sort_by_port_index %}{% endif %}

{%- set port_names_list_active = [] %}
{%- for port in PORT_ACTIVE %}
{%- if port_names_list_active.append(port) %}{%- endif %}
{%- endfor %}
{%- set port_names_active = port_names_list_active | join(',') -%}


{%- set pfc_to_pg_map_supported_asics = ['mellanox', 'barefoot', 'marvell'] -%}


{
{% if generate_tc_to_pg_map is defined %}
{{- generate_tc_to_pg_map() }}
{% else %}
"TC_TO_PRIORITY_GROUP_MAP": {
"DEFAULT": {
"0": "0",
"1": "0",
"2": "0",
"3": "3",
"4": "4",
"5": "0",
"6": "0",
"7": "7"
}
},
{% endif %}
"MAP_PFC_PRIORITY_TO_QUEUE": {
"DEFAULT": {
"0": "0",
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"7": "7"
}
},
"TC_TO_QUEUE_MAP": {
"DEFAULT": {
"0": "0",
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"6": "6",
"7": "7"
}
},
"DSCP_TO_TC_MAP": {
"DEFAULT": {
"0" : "0",
"1" : "0",
"2" : "0",
"3" : "0",
"4" : "0",
"5" : "0",
"6" : "0",
"7" : "0",
"8" : "0",
"9" : "0",
"10": "0",
"11": "0",
"12": "0",
"13": "0",
"14": "0",
"15": "0",
"16": "0",
"17": "0",
"18": "0",
"19": "0",
"20": "0",
"21": "0",
"22": "0",
"23": "0",
"24": "0",
"25": "0",
"26": "0",
"27": "0",
"28": "0",
"29": "0",
"30": "0",
"31": "0",
"32": "0",
"33": "0",
"34": "0",
"35": "0",
"36": "0",
"37": "0",
"38": "0",
"39": "0",
"40": "0",
"41": "0",
"42": "0",
"43": "0",
"44": "0",
"45": "0",
"46": "0",
"47": "0",
"48": "0",
"49": "0",
"50": "0",
"51": "0",
"52": "0",
"53": "0",
"54": "0",
"55": "0",
"56": "0",
"57": "0",
"58": "0",
"59": "0",
"60": "0",
"61": "0",
"62": "0",
"63": "0"
}
},
"SCHEDULER": {
"scheduler.0": {
"type" : "DWRR",
"weight": "1"
},
"scheduler.1": {
"type" : "DWRR",
"weight": "2"
},
"scheduler.2": {
"type" : "DWRR",
"weight": "3"
},
"scheduler.3": {
"type" : "DWRR",
"weight": "4"
},
"scheduler.4": {
"type" : "DWRR",
"weight": "5"
},
"scheduler.5": {
"type" : "DWRR",
"weight": "10"
},
"scheduler.6": {
"type" : "DWRR",
"weight": "25"
},
"scheduler.7": {
"type" : "STRICT"
}
},
"PORT_QOS_MAP": {
"{{ port_names_active }}": {
"dscp_to_tc_map" : "[DSCP_TO_TC_MAP|DEFAULT]",
"tc_to_queue_map" : "[TC_TO_QUEUE_MAP|DEFAULT]",
"pfc_enable" : "3,4",
"tc_to_pg_map" : "[TC_TO_PRIORITY_GROUP_MAP|DEFAULT]"
}
},
"QUEUE": {
{% for port in PORT_ACTIVE %}
"{{ port }}|0": {
"scheduler" : "[SCHEDULER|scheduler.0]"
},
{% endfor %}
{% for port in PORT_ACTIVE %}
"{{ port }}|1": {
"scheduler" : "[SCHEDULER|scheduler.1]"
},
{% endfor %}
{% for port in PORT_ACTIVE %}
"{{ port }}|2": {
"scheduler": "[SCHEDULER|scheduler.2]"
},
{% endfor %}
{% for port in PORT_ACTIVE %}
"{{ port }}|3": {
"scheduler": "[SCHEDULER|scheduler.3]"
},
{% endfor %}
{% for port in PORT_ACTIVE %}
"{{ port }}|4": {
"scheduler": "[SCHEDULER|scheduler.4]"
},
{% endfor %}
{% for port in PORT_ACTIVE %}
"{{ port }}|5": {
"scheduler": "[SCHEDULER|scheduler.5]"
},
{% endfor %}
{% for port in PORT_ACTIVE %}
"{{ port }}|6": {
"scheduler": "[SCHEDULER|scheduler.6]"
},
{% endfor %}
{% for port in PORT_ACTIVE %}
"{{ port }}|7": {
"scheduler": "[SCHEDULER|scheduler.7]"
}{% if not loop.last %},{% endif %}
{% endfor %}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/th3-z9332f-32x400G.config.bcm
SAI_NUM_ECMP_MEMBERS=64
Loading

0 comments on commit fb83550

Please sign in to comment.