Skip to content

Handle the clear request for 'Q_SHARED_ALL'#1653

Merged
neethajohn merged 3 commits intosonic-net:masterfrom
bratashX:q_shared_all_clean
Mar 23, 2021
Merged

Handle the clear request for 'Q_SHARED_ALL'#1653
neethajohn merged 3 commits intosonic-net:masterfrom
bratashX:q_shared_all_clean

Conversation

@bratashX
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

@akokhan @neethajohn, please review

@neethajohn
Copy link
Copy Markdown
Contributor

Please add unit tests. Refer tests/test_watermark.py

@bratashX bratashX force-pushed the q_shared_all_clean branch from 6b9dd94 to 5e0c4af Compare March 1, 2021 12:57
@bratashX
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

bratashX commented Mar 4, 2021

@neethajohn, could you please review

@bratashX
Copy link
Copy Markdown
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
Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
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>
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