Skip to content
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

Handle the clear request for 'Q_SHARED_ALL' #1653

Merged
merged 3 commits into from
Mar 23, 2021

Conversation

bratashX
Copy link
Contributor

@bratashX bratashX commented Feb 25, 2021

Signed-off-by: Petro Bratash petrox.bratash@intel.com

What I did
Add handling the clear request for 'Q_SHARED_ALL'

Why I did it
On this PR added new commands :

sonic-clear queue persistent-watermark all
sonic-clear queue watermark all

Without these changes, commands will result in
https://github.com/Azure/sonic-swss/blob/master/orchagent/watermarkorch.cpp#L221

How I verified it
Run:

sonic-clear queue persistent-watermark all
sonic-clear queue watermark all

Details if related
PR in sonic-utilities: sonic-net/sonic-utilities#1149

Signed-off-by: Petro Bratash <petrox.bratash@intel.com>
@bratashX
Copy link
Contributor Author

@akokhan @neethajohn, please review

@neethajohn
Copy link
Contributor

Please add unit tests. Refer tests/test_watermark.py

orchagent/watermarkorch.cpp Outdated Show resolved Hide resolved
@bratashX
Copy link
Contributor Author

bratashX commented Mar 1, 2021

Please add unit tests. Refer tests/test_watermark.py

@neethajohn Unit test was added, but test-related on sonic-net/sonic-utilities#1149, and will pass after merge this PR.
Also, we skip test in CI:
https://github.com/Azure/sonic-swss/blob/1d3388100ef7edbc275746136d8a1db0769e652e/tests/test_watermark.py#L245
I can temporarily allow it for verification TC and after test passed changes will be rollback.

@bratashX bratashX requested a review from neethajohn March 2, 2021 07:15
@bratashX
Copy link
Contributor Author

bratashX commented Mar 4, 2021

@neethajohn, could you please review

@bratashX
Copy link
Contributor Author

bratashX commented Mar 18, 2021

@neethajohn @lguohan could you please merge? Thanks

@neethajohn neethajohn merged commit de5fb41 into sonic-net:master Mar 23, 2021
neethajohn pushed a commit to sonic-net/sonic-utilities that referenced this pull request Mar 25, 2021
Signed-off-by: Petro Bratash petrox.bratash@intel.com
Depends on sonic-net/sonic-swss#1653

- What I did
Add new commands :
show queue persistent-watermark all
show queue watermark all
sonic-clear queue watermark all
sonic-clear queue persistent-watermark all

- How I did it
Add q_shared_all type to watermarkstat file

- How to verify it
Execute:
show queue persistent-watermark all
show queue watermark all
sonic-clear queue watermark all
sonic-clear queue persistent-watermark all
raphaelt-nvidia pushed a commit to raphaelt-nvidia/sonic-swss that referenced this pull request Oct 5, 2021
What I did
Add handling the clear request for 'Q_SHARED_ALL'

Why I did it
In  sonic-net/sonic-utilities#1149 added the following new commands

sonic-clear queue persistent-watermark all
sonic-clear queue watermark all

Without these changes, commands will result in
https://github.com/Azure/sonic-swss/blob/master/orchagent/watermarkorch.cpp#L221

Signed-off-by: Petro Bratash <petrox.bratash@intel.com>
EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
…nic-net#1653)

Fixed issue when VNET route check detects some routes as missed they are really configured.
Signed-off-by: Volodymyr Samotiy <volodymyrs@nvidia.com>
malletvapid23 added a commit to malletvapid23/Sonic-Utility that referenced this pull request Aug 3, 2023
Signed-off-by: Petro Bratash petrox.bratash@intel.com
Depends on sonic-net/sonic-swss#1653

- What I did
Add new commands :
show queue persistent-watermark all
show queue watermark all
sonic-clear queue watermark all
sonic-clear queue persistent-watermark all

- How I did it
Add q_shared_all type to watermarkstat file

- How to verify it
Execute:
show queue persistent-watermark all
show queue watermark all
sonic-clear queue watermark all
sonic-clear queue persistent-watermark all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants