-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Accton wedge100bf_32qs platform
This pull request is based on wedge100bf_32x. The components on the mainboard are the same as wedge100bf_32x, except for tofino 32Q and COMe models, so it refers to wedge100bf_32x to create new model: wedge100bf_32qs. Signed-off-by: alvin_feng <alvin_feng@accton.com>
- Loading branch information
1 parent
f63e3cd
commit f1deed2
Showing
57 changed files
with
11,172 additions
and
0 deletions.
There are no files selected for viewing
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 @@ | ||
montara t1 |
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 @@ | ||
CONSOLE_SPEED=57600 |
2 changes: 2 additions & 0 deletions
2
device/accton/x86_64-accton_wedge100bf_32qs-r0/montara/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,2 @@ | ||
{%- set default_topo = 't0' %} | ||
{%- include 'buffers_config.j2' %} |
83 changes: 83 additions & 0 deletions
83
device/accton/x86_64-accton_wedge100bf_32qs-r0/montara/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,83 @@ | ||
{% set default_cable = '5m' %} | ||
{% set ingress_lossless_pool_size = '4194304' %} | ||
{% set ingress_lossy_pool_size = '7340032' %} | ||
{% set egress_lossless_pool_size = '16777152' %} | ||
{% set egress_lossy_pool_size = '7340032' %} | ||
|
||
{%- macro generate_port_lists(PORT_ALL) %} | ||
{# Generate list of ports #} | ||
{%- for port_idx in range(0,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": "{{ ingress_lossless_pool_size }}", | ||
"type": "ingress", | ||
"mode": "dynamic" | ||
}, | ||
"ingress_lossy_pool": { | ||
"size": "{{ ingress_lossy_pool_size }}", | ||
"type": "ingress", | ||
"mode": "dynamic" | ||
}, | ||
"egress_lossless_pool": { | ||
"size": "{{ egress_lossless_pool_size }}", | ||
"type": "egress", | ||
"mode": "dynamic" | ||
}, | ||
"egress_lossy_pool": { | ||
"size": "{{ egress_lossy_pool_size }}", | ||
"type": "egress", | ||
"mode": "dynamic" | ||
} | ||
}, | ||
"BUFFER_PROFILE": { | ||
"ingress_lossless_profile": { | ||
"pool":"[BUFFER_POOL|ingress_lossless_pool]", | ||
"size":"4096", | ||
"dynamic_th":"0" | ||
}, | ||
"ingress_lossy_profile": { | ||
"pool":"[BUFFER_POOL|ingress_lossy_pool]", | ||
"size":"4096", | ||
"dynamic_th":"3" | ||
}, | ||
"egress_lossless_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossless_pool]", | ||
"size":"4096", | ||
"dynamic_th":"7" | ||
}, | ||
"egress_lossy_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossy_pool]", | ||
"size":"4096", | ||
"dynamic_th":"3" | ||
}, | ||
"q_lossy_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossy_pool]", | ||
"size":"4096", | ||
"dynamic_th":"3" | ||
} | ||
}, | ||
{%- endmacro %} | ||
|
||
{%- macro generate_pg_profils(port_names) %} | ||
"BUFFER_PG": { | ||
"{{ port_names }}|3-4": { | ||
"profile" : "[BUFFER_PROFILE|ingress_lossless_profile]" | ||
} | ||
}, | ||
{%- endmacro %} | ||
|
||
{%- macro generate_queue_buffers(port_names) %} | ||
"BUFFER_QUEUE": { | ||
"{{ port_names }}|3-4": { | ||
"profile" : "[BUFFER_PROFILE|egress_lossless_profile]" | ||
}, | ||
"{{ port_names }}|0-1": { | ||
"profile" : "[BUFFER_PROFILE|q_lossy_profile]" | ||
} | ||
} | ||
{%- endmacro %} |
83 changes: 83 additions & 0 deletions
83
device/accton/x86_64-accton_wedge100bf_32qs-r0/montara/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,83 @@ | ||
{% set default_cable = '5m' %} | ||
{% set ingress_lossless_pool_size = '2097152' %} | ||
{% set ingress_lossy_pool_size = '5242880' %} | ||
{% set egress_lossless_pool_size = '16777152' %} | ||
{% set egress_lossy_pool_size = '5242880' %} | ||
|
||
{%- macro generate_port_lists(PORT_ALL) %} | ||
{# Generate list of ports #} | ||
{%- for port_idx in range(0,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": "{{ ingress_lossless_pool_size }}", | ||
"type": "ingress", | ||
"mode": "dynamic" | ||
}, | ||
"ingress_lossy_pool": { | ||
"size": "{{ ingress_lossy_pool_size }}", | ||
"type": "ingress", | ||
"mode": "dynamic" | ||
}, | ||
"egress_lossless_pool": { | ||
"size": "{{ egress_lossless_pool_size }}", | ||
"type": "egress", | ||
"mode": "dynamic" | ||
}, | ||
"egress_lossy_pool": { | ||
"size": "{{ egress_lossy_pool_size }}", | ||
"type": "egress", | ||
"mode": "dynamic" | ||
} | ||
}, | ||
"BUFFER_PROFILE": { | ||
"ingress_lossless_profile": { | ||
"pool":"[BUFFER_POOL|ingress_lossless_pool]", | ||
"size":"4096", | ||
"dynamic_th":"0" | ||
}, | ||
"ingress_lossy_profile": { | ||
"pool":"[BUFFER_POOL|ingress_lossy_pool]", | ||
"size":"4096", | ||
"dynamic_th":"3" | ||
}, | ||
"egress_lossless_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossless_pool]", | ||
"size":"4096", | ||
"dynamic_th":"7" | ||
}, | ||
"egress_lossy_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossy_pool]", | ||
"size":"4096", | ||
"dynamic_th":"3" | ||
}, | ||
"q_lossy_profile": { | ||
"pool":"[BUFFER_POOL|egress_lossy_pool]", | ||
"size":"4096", | ||
"dynamic_th":"3" | ||
} | ||
}, | ||
{%- endmacro %} | ||
|
||
{%- macro generate_pg_profils(port_names) %} | ||
"BUFFER_PG": { | ||
"{{ port_names }}|3-4": { | ||
"profile" : "[BUFFER_PROFILE|ingress_lossless_profile]" | ||
} | ||
}, | ||
{%- endmacro %} | ||
|
||
{%- macro generate_queue_buffers(port_names) %} | ||
"BUFFER_QUEUE": { | ||
"{{ port_names }}|3-4": { | ||
"profile" : "[BUFFER_PROFILE|egress_lossless_profile]" | ||
}, | ||
"{{ port_names }}|0-1": { | ||
"profile" : "[BUFFER_PROFILE|q_lossy_profile]" | ||
} | ||
} | ||
{%- endmacro %} |
164 changes: 164 additions & 0 deletions
164
device/accton/x86_64-accton_wedge100bf_32qs-r0/montara/hwsku.json
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,164 @@ | ||
{ | ||
"interfaces": { | ||
"Ethernet0": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
}, | ||
"Ethernet4": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
}, | ||
"Ethernet8": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
}, | ||
"Ethernet12": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
}, | ||
"Ethernet16": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
}, | ||
"Ethernet20": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
}, | ||
"Ethernet24": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
}, | ||
"Ethernet28": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
}, | ||
"Ethernet32": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
}, | ||
"Ethernet36": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
}, | ||
"Ethernet40": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
}, | ||
"Ethernet44": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
}, | ||
"Ethernet48": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
}, | ||
"Ethernet52": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
}, | ||
"Ethernet56": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
}, | ||
"Ethernet60": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
}, | ||
"Ethernet64": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
}, | ||
"Ethernet68": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
}, | ||
"Ethernet72": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
}, | ||
"Ethernet76": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
}, | ||
"Ethernet80": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
}, | ||
"Ethernet84": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
}, | ||
"Ethernet88": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
}, | ||
"Ethernet92": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
}, | ||
"Ethernet96": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
}, | ||
"Ethernet100": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
}, | ||
"Ethernet104": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
}, | ||
"Ethernet108": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
}, | ||
"Ethernet112": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
}, | ||
"Ethernet116": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
}, | ||
"Ethernet120": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
}, | ||
"Ethernet124": { | ||
"default_brkout_mode": "1x100G[40G]", | ||
"autoneg": "0", | ||
"fec": "rs" | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
device/accton/x86_64-accton_wedge100bf_32qs-r0/montara/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,17 @@ | ||
# PG lossless profiles. | ||
# speed cable size xon xoff threshold | ||
10000 5m 34816 18432 16384 0 | ||
25000 5m 34816 18432 16384 0 | ||
40000 5m 34816 18432 16384 0 | ||
50000 5m 34816 18432 16384 0 | ||
100000 5m 36864 18432 18432 0 | ||
10000 40m 36864 18432 18432 0 | ||
25000 40m 39936 18432 21504 0 | ||
40000 40m 41984 18432 23552 0 | ||
50000 40m 41984 18432 23552 0 | ||
100000 40m 54272 18432 35840 0 | ||
10000 300m 49152 18432 30720 0 | ||
25000 300m 71680 18432 53248 0 | ||
40000 300m 94208 18432 75776 0 | ||
50000 300m 94208 18432 75776 0 | ||
100000 300m 184320 18432 165888 0 |
33 changes: 33 additions & 0 deletions
33
device/accton/x86_64-accton_wedge100bf_32qs-r0/montara/port_config.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,33 @@ | ||
# name lanes alias index speed autoneg fec | ||
Ethernet0 0,1,2,3 Ethernet0 1 100000 0 rs | ||
Ethernet4 4,5,6,7 Ethernet4 2 100000 0 rs | ||
Ethernet8 8,9,10,11 Ethernet8 3 100000 0 rs | ||
Ethernet12 12,13,14,15 Ethernet12 4 100000 0 rs | ||
Ethernet16 16,17,18,19 Ethernet16 5 100000 0 rs | ||
Ethernet20 20,21,22,23 Ethernet20 6 100000 0 rs | ||
Ethernet24 24,25,26,27 Ethernet24 7 100000 0 rs | ||
Ethernet28 28,29,30,31 Ethernet28 8 100000 0 rs | ||
Ethernet32 32,33,34,35 Ethernet32 9 100000 0 rs | ||
Ethernet36 36,37,38,39 Ethernet36 10 100000 0 rs | ||
Ethernet40 40,41,42,43 Ethernet40 11 100000 0 rs | ||
Ethernet44 44,45,46,47 Ethernet44 12 100000 0 rs | ||
Ethernet48 48,49,50,51 Ethernet48 13 100000 0 rs | ||
Ethernet52 52,53,54,55 Ethernet52 14 100000 0 rs | ||
Ethernet56 56,57,58,59 Ethernet56 15 100000 0 rs | ||
Ethernet60 60,61,62,63 Ethernet60 16 100000 0 rs | ||
Ethernet64 64,65,66,67 Ethernet64 17 100000 0 rs | ||
Ethernet68 68,69,70,71 Ethernet68 18 100000 0 rs | ||
Ethernet72 72,73,74,75 Ethernet72 19 100000 0 rs | ||
Ethernet76 76,77,78,79 Ethernet76 20 100000 0 rs | ||
Ethernet80 80,81,82,83 Ethernet80 21 100000 0 rs | ||
Ethernet84 84,85,86,87 Ethernet84 22 100000 0 rs | ||
Ethernet88 88,89,90,91 Ethernet88 23 100000 0 rs | ||
Ethernet92 92,93,94,95 Ethernet92 24 100000 0 rs | ||
Ethernet96 96,97,98,99 Ethernet96 25 100000 0 rs | ||
Ethernet100 100,101,102,103 Ethernet100 26 100000 0 rs | ||
Ethernet104 104,105,106,107 Ethernet104 27 100000 0 rs | ||
Ethernet108 108,109,110,111 Ethernet108 28 100000 0 rs | ||
Ethernet112 112,113,114,115 Ethernet112 29 100000 0 rs | ||
Ethernet116 116,117,118,119 Ethernet116 30 100000 0 rs | ||
Ethernet120 120,121,122,123 Ethernet120 31 100000 0 rs | ||
Ethernet124 124,125,126,127 Ethernet124 32 100000 0 rs |
Oops, something went wrong.