-
Notifications
You must be signed in to change notification settings - Fork 773
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
Update qos sai due to no lossless pg for some platforms #16440
base: master
Are you sure you want to change the base?
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azpw run Azure.sonic-mgmt |
/AzurePipelines run Azure.sonic-mgmt |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Pull request contains merge conflicts. |
3cd040a
to
abc7410
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
#### Why I did it To have DSCP mapping updated to Mellanox SN5600, SN5610N SKUs #### How I did it Update buffers_defaults_objects.j2 and qos.json.j2 according to new DSCP mapping #### How to verify it Check SDK dumps to make sure values are correct Also, run sonic-mgmt test. relevant changes can be found here - sonic-net/sonic-mgmt#16440 <!-- If PR needs to be backported, then the PR must be tested against the base branch and the earliest backport release branch and provide tested image version on these two branches. For example, if the PR is requested for master, 202211 and 202012, then the requester needs to provide test results on master and 202012. --> #### Which release branch to backport (provide reason below if selected) <!-- - Note we only backport fixes to a release branch, *not* features! - Please also provide a reason for the backporting below. - e.g. - [x] 202006 --> - [ ] 201811 - [ ] 201911 - [ ] 202006 - [ ] 202012 - [ ] 202106 - [ ] 202111 - [ ] 202205 - [ ] 202211 - [ ] 202305 #### Tested branch (Please provide the tested image version) <!-- - Please provide tested image version - e.g. - [x] 20201231.100 --> - [ ] <!-- image version 1 --> - [ ] <!-- image version 2 --> #### Description for the changelog <!-- Write a short (one line) summary that describes the changes in this pull request for inclusion in the changelog: --> <!-- Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU. --> #### Link to config_db schema for YANG module changes <!-- Provide a link to config_db schema for the table for which YANG model is defined Link should point to correct section on https://github.com/Azure/sonic-buildimage/blob/master/src/sonic-yang-models/doc/Configuration.md --> #### A picture of a cute animal (not mandatory but encouraged)
#### Why I did it To have DSCP mapping updated to Mellanox SN5600, SN5610N SKUs #### How I did it Update buffers_defaults_objects.j2 and qos.json.j2 according to new DSCP mapping #### How to verify it Check SDK dumps to make sure values are correct Also, run sonic-mgmt test. relevant changes can be found here - sonic-net/sonic-mgmt#16440 <!-- If PR needs to be backported, then the PR must be tested against the base branch and the earliest backport release branch and provide tested image version on these two branches. For example, if the PR is requested for master, 202211 and 202012, then the requester needs to provide test results on master and 202012. --> #### Which release branch to backport (provide reason below if selected) <!-- - Note we only backport fixes to a release branch, *not* features! - Please also provide a reason for the backporting below. - e.g. - [x] 202006 --> - [ ] 201811 - [ ] 201911 - [ ] 202006 - [ ] 202012 - [ ] 202106 - [ ] 202111 - [ ] 202205 - [ ] 202211 - [ ] 202305 #### Tested branch (Please provide the tested image version) <!-- - Please provide tested image version - e.g. - [x] 20201231.100 --> - [ ] <!-- image version 1 --> - [ ] <!-- image version 2 --> #### Description for the changelog <!-- Write a short (one line) summary that describes the changes in this pull request for inclusion in the changelog: --> <!-- Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU. --> #### Link to config_db schema for YANG module changes <!-- Provide a link to config_db schema for the table for which YANG model is defined Link should point to correct section on https://github.com/Azure/sonic-buildimage/blob/master/src/sonic-yang-models/doc/Configuration.md --> #### A picture of a cute animal (not mandatory but encouraged)
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
@kperumalbfn , @XuChen-MSFT Can you please help review? |
@JibinBao can we combine this with #17004 (comment)? Both the PRs are related and we can use the same logic to skip the lossless tests on SKUs with only lossy configs. |
hi @kperumalbfn , We have one same logic: profile_content = dut_asic.run_redis_cmd( Can we create a function with the above code and put it tests/qos/conftest.py def detect_lossy_only_pool(dut_asic): |
1. For spc4, there is only lossy buffer, so the buffer for lossless buffer will be taken by lossy buffer, if the packet size is too small, the packet number sent to occupy the shared buffer will increase a lot, so it will lead that descriptor will be exhausted, so update testQosSaiPgSharedWatermark, testQosSaiQSharedWatermark and testQosSaiLossyQueue accordingly. 2. Remove the test config of scheduler.block_data_plane, otherwise it might rise yang validation error when do config reload 3. list the relevant Prs: sonic-net/sonic-buildimage#20992 sonic-net/sonic-buildimage#21056 sonic-net/sonic-buildimage#20991
1. When there is no lossless buffer, return a dump buffer lossless pg profile 2. Skip tests related to lossless buffer case dynamically
1. Update qos sai lossy tests because all lossless queues has changed as lossy queues 2. Skip fixture reaseAllports for mellanox device, because after qos test is finished, the teardown will do config reload, it will restore the config of ports, we don't need this fixture before running tests. Also it can save 2 minutes 3. Relevant PRs: sonic-net/sonic-buildimage#21427, sonic-net/sonic-buildimage#21056
1600d33
to
80a72f8
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Description of PR
[Mellanox] Update buffer calculations for Mellanox-SN5600-C224O8 SKU sonic-buildimage#20992
[Mellanox] Add x86_64-nvidia_sn5610n-r0 new platform and SKUs sonic-buildimage#21056
[Mellanox] Update Mellanox-SN5600-C256S1 buffer calculations sonic-buildimage#20991
[Mellanox] Add x86_64-nvidia_sn5610n-r0 new platform and SKUs sonic-buildimage#21056
[Mellanox] Update Mellanox-SN5600-C256S1, Mellanox-SN5600-C224O8 buffers and DSCP mapping sonic-buildimage#21427
[Mellanox] Add x86_64-nvidia_sn5610n-r0 new platform and SKUs sonic-buildimage#21056
[Mellanox] Update DSCP mapping for SN5600, SN5610 SKUs sonic-buildimage#21762
Summary:
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
update the qos sai test for no pg lossless buffer platform
How did you do it?
update for lossy case and skip test relatd to pg buffer lossless
How did you verify/test it?
Run qos sai test on platform without pg lossless buffer plaform
Any platform specific information?
sn5600 and sn5610
Supported testbed topology if it's a new test case?
Documentation