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

Add all parameter to show/clear queue watermark command #1149

Merged
merged 6 commits into from
Mar 25, 2021

Conversation

bratashX
Copy link
Contributor

@bratashX bratashX commented Oct 6, 2020

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

- Previous command output (if the output of a command-line utility has changed)

- New command output (if the output of a command-line utility has changed)

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

bratashX commented Oct 6, 2020

@akokhan, please review

akokhan
akokhan previously approved these changes Oct 6, 2020
@lguohan
Copy link
Contributor

lguohan commented Oct 9, 2020

for all new feature, unit tests are required.

lguohan
lguohan previously requested changes Oct 9, 2020
Copy link
Contributor

@lguohan lguohan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for all new feature, unit tests are required.

@bratashX
Copy link
Contributor Author

Unit tests for this feature were added.
@akokhan @neethajohn @lguohan, please review

@bratashX bratashX requested a review from lguohan January 26, 2021 13:56
@bratashX
Copy link
Contributor Author

@neethajohn @lguohan, please review

Signed-off-by: Petro Bratash <petrox.bratash@intel.com>
@bratashX bratashX force-pushed the improve_show_queue_watermark branch 2 times, most recently from 23edbd3 to 20ee6b3 Compare February 23, 2021 16:35
@bratashX
Copy link
Contributor Author

@neethajohn @lguohan, please review and merge

@neethajohn
Copy link
Contributor

@bratashX , Is there a PR in swss to handle the clear request for 'Q_SHARED_ALL'.? Otherwise the clear command will result in
https://github.com/Azure/sonic-swss/blob/master/orchagent/watermarkorch.cpp#L221

@bratashX
Copy link
Contributor Author

@bratashX , Is there a PR in swss to handle the clear request for 'Q_SHARED_ALL'.? Otherwise the clear command will result in
https://github.com/Azure/sonic-swss/blob/master/orchagent/watermarkorch.cpp#L221

@neethajohn Thanks, related PR in sonic-swss: sonic-net/sonic-swss#1653

@bratashX bratashX changed the title Add all parameter to show queue watermark command Add all parameter to show/clear queue watermark command Feb 25, 2021
@bratashX
Copy link
Contributor Author

@lguohan @neethajohn could you please review and merge

@neethajohn neethajohn dismissed lguohan’s stale review March 15, 2021 21:57

Unit tests added

@bratashX
Copy link
Contributor Author

@neethajohn @lguohan could you please merge? Thanks

neethajohn pushed a commit to sonic-net/sonic-swss that referenced this pull request Mar 23, 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>
@bratashX
Copy link
Contributor Author

@neethajohn thanks for merge sonic-net/sonic-swss#1653
Please also merge this PR, because it related

@neethajohn neethajohn merged commit 1f1696a into sonic-net:master Mar 25, 2021
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>
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.

4 participants