This repository was archived by the owner on Jan 3, 2023. It is now read-only.
forked from sonoble/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 5
SWI-1436 Add bfn buffer cfg files for montara/maverick as per new design #15
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
device/barefoot/x86_64-accton_wedge100bf_32x-r0/montara/buffers.json.j2
This file contains hidden or 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' %} |
77 changes: 77 additions & 0 deletions
77
device/barefoot/x86_64-accton_wedge100bf_32x-r0/montara/buffers_defaults_t0.j2
This file contains hidden or 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,77 @@ | ||
| {% 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_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 %} | ||
|
|
||
|
|
||
77 changes: 77 additions & 0 deletions
77
device/barefoot/x86_64-accton_wedge100bf_32x-r0/montara/buffers_defaults_t1.j2
This file contains hidden or 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,77 @@ | ||
| {% 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_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 %} | ||
|
|
||
|
|
17 changes: 17 additions & 0 deletions
17
device/barefoot/x86_64-accton_wedge100bf_32x-r0/montara/pg_profile_lookup.ini
This file contains hidden or 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 |
2 changes: 2 additions & 0 deletions
2
device/barefoot/x86_64-accton_wedge100bf_65x-r0/mavericks/buffers.json.j2
This file contains hidden or 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' %} |
90 changes: 90 additions & 0 deletions
90
device/barefoot/x86_64-accton_wedge100bf_65x-r0/mavericks/buffers_defaults_t0.j2
This file contains hidden or 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,90 @@ | ||
| {% 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,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": "{{ 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_profile_lists(port_names) %} | ||
| "BUFFER_PORT_INGRESS_PROFILE_LIST": { | ||
| "{{ port_names }}": { | ||
| "profile_list" : "[BUFFER_PROFILE|ingress_lossless_profile],[BUFFER_PROFILE|ingress_lossy_profile]" | ||
| } | ||
| }, | ||
| "BUFFER_PORT_EGRESS_PROFILE_LIST": { | ||
| "{{ port_names }}": { | ||
| "profile_list" : "[BUFFER_PROFILE|egress_lossless_profile],[BUFFER_PROFILE|egress_lossy_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 %} | ||
|
|
||
|
|
77 changes: 77 additions & 0 deletions
77
device/barefoot/x86_64-accton_wedge100bf_65x-r0/mavericks/buffers_defaults_t1.j2
This file contains hidden or 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,77 @@ | ||
| {% 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,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": "{{ 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_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 %} | ||
|
|
||
|
|
17 changes: 17 additions & 0 deletions
17
device/barefoot/x86_64-accton_wedge100bf_65x-r0/mavericks/pg_profile_lookup.ini
This file contains hidden or 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 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kperumalbfn Do we want to keep this as is. Since we create only one ppg by default should this be changed or does the switch conf files needs to be updated