-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Add two extra lossless queues for bounced back traffic #10496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
neethajohn
merged 18 commits into
sonic-net:master
from
bingwang-ms:update_lossless_queue
Jun 2, 2022
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
c7ad1d2
Add extra lossless queues
bingwang-ms e78d970
Fix UT
bingwang-ms 1a2284f
Rename macro
bingwang-ms 239ce9a
Update check condition
bingwang-ms 798fe7c
Address comments
bingwang-ms e2ea3f0
Add empty line at end of file
bingwang-ms bd9c28a
Fix j2 template
bingwang-ms 8561956
Merge remote-tracking branch 'origin/master' into update_lossless_queue
bingwang-ms 662697c
Fix UT for dualtor
bingwang-ms ad1111a
Combine BUFFER_QUEUE 3 and 4
bingwang-ms d471bec
Merge remote-tracking branch 'origin/master' into update_lossless_queue
bingwang-ms 1aeb85b
Add SYSTEM_DEFAULTS table
bingwang-ms ba5f9ae
Rm lossy PG 2 and 6
bingwang-ms 4488f9b
Add check in buffers_config.j2
bingwang-ms 40a5877
Add check in buffers_config.j2
bingwang-ms 2bed50c
Merge remote-tracking branch 'origin/master' into update_lossless_queue
bingwang-ms 1f4eff3
Tests cover remap-disabled
bingwang-ms a7618ec
Update buffers_config.j2
bingwang-ms 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
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
1 change: 1 addition & 0 deletions
1
device/arista/x86_64-arista_7050cx3_32s/Arista-7050CX3-32S-C32/buffers_extra_queues.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 @@ | ||
| ../Arista-7050CX3-32S-D48C8/buffers_extra_queues.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
37 changes: 37 additions & 0 deletions
37
device/arista/x86_64-arista_7050cx3_32s/Arista-7050CX3-32S-D48C8/buffers_extra_queues.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,37 @@ | ||
| {% if DEVICE_METADATA is defined and 'subtype' in DEVICE_METADATA['localhost'] and DEVICE_METADATA['localhost']['subtype'] == 'DualToR' %} | ||
| {%- macro generate_queue_buffers_with_extra_lossless_queues(port_names, port_names_require_extra_buffer) %} | ||
| "BUFFER_QUEUE": { | ||
| {% for port in port_names.split(',') %} | ||
| {% if port in port_names_require_extra_buffer.split(',') %} | ||
| "{{ port }}|0-1": { | ||
| "profile" : "egress_lossy_profile" | ||
| }, | ||
| "{{ port }}|2-4": { | ||
| "profile" : "egress_lossless_profile" | ||
| }, | ||
| "{{ port }}|5": { | ||
| "profile" : "egress_lossy_profile" | ||
| }, | ||
| "{{ port }}|6": { | ||
| "profile" : "egress_lossless_profile" | ||
| }, | ||
| "{{ port }}|7": { | ||
| "profile" : "egress_lossy_profile" | ||
| }{% if not loop.last %},{% endif %} | ||
|
|
||
| {% else %} | ||
| "{{ port }}|0-2": { | ||
| "profile" : "egress_lossy_profile" | ||
| }, | ||
| "{{ port }}|3-4": { | ||
| "profile" : "egress_lossless_profile" | ||
| }, | ||
| "{{ port }}|5-7": { | ||
| "profile" : "egress_lossy_profile" | ||
| }{% if not loop.last %},{% endif %} | ||
|
|
||
| {% endif %} | ||
| {% endfor %} | ||
| } | ||
| {% endmacro %} | ||
| {% endif %} |
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
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
38 changes: 38 additions & 0 deletions
38
device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-C64/buffers_extra_queues.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,38 @@ | ||
| {% if DEVICE_METADATA is defined and 'type' in DEVICE_METADATA['localhost'] and | ||
| (DEVICE_METADATA['localhost']['type'] == 'LeafRouter' or DEVICE_METADATA['localhost']['subtype'] == 'DualToR') %} | ||
| {%- macro generate_queue_buffers_with_extra_lossless_queues(port_names, port_names_require_extra_buffer) %} | ||
| "BUFFER_QUEUE": { | ||
| {% for port in port_names.split(',') %} | ||
| {% if port in port_names_require_extra_buffer.split(',') %} | ||
| "{{ port }}|0-1": { | ||
| "profile" : "egress_lossy_profile" | ||
| }, | ||
| "{{ port }}|2-4": { | ||
| "profile" : "egress_lossless_profile" | ||
| }, | ||
| "{{ port }}|5": { | ||
| "profile" : "egress_lossy_profile" | ||
| }, | ||
| "{{ port }}|6": { | ||
| "profile" : "egress_lossless_profile" | ||
| }, | ||
| "{{ port }}|7": { | ||
| "profile" : "egress_lossy_profile" | ||
| }{% if not loop.last %},{% endif %} | ||
|
|
||
| {% else %} | ||
| "{{ port }}|0-2": { | ||
| "profile" : "egress_lossy_profile" | ||
| }, | ||
| "{{ port }}|3-4": { | ||
| "profile" : "egress_lossless_profile" | ||
| }, | ||
| "{{ port }}|5-7": { | ||
| "profile" : "egress_lossy_profile" | ||
| }{% if not loop.last %},{% endif %} | ||
|
|
||
| {% endif %} | ||
| {% endfor %} | ||
| } | ||
| {% endmacro %} | ||
| {% endif %} |
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
1 change: 1 addition & 0 deletions
1
device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-D108C8/buffers_extra_queues.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 @@ | ||
| ../Arista-7260CX3-C64/buffers_extra_queues.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
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
1 change: 1 addition & 0 deletions
1
device/arista/x86_64-arista_7260cx3_64/Arista-7260CX3-Q64/buffers_extra_queues.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 @@ | ||
| ../Arista-7260CX3-C64/buffers_extra_queues.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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.