Skip to content

Watermark: test SAI clear api if the stats mode is READ_AND_CLEAR #427

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
merged 5 commits into from
May 25, 2019

Conversation

wendani
Copy link
Contributor

@wendani wendani commented Feb 25, 2019

No description provided.

@kcudnik
Copy link
Collaborator

kcudnik commented Feb 26, 2019

In the title you have "test clear api", and you are adding some log messages with error/notice level, so they will be always visible in the logs, wont that produce a lot of noise in syslog if some of the platform don't support some features ?

@wendani
Copy link
Contributor Author

wendani commented May 24, 2019

Hi Kamil
saiUpdateSupportedQueueCounters
saiUpdateSupportedPriorityGroupCounters

will probe the get_stat and clear_stat function call capability, and remove the stats that are not supported on certain platforms. This ensures that it is less likely the function call will return error during the actual polling phase.

#427 (comment)

@wendani wendani merged commit f93e27a into sonic-net:master May 25, 2019
pettershao-ragilenetworks pushed a commit to pettershao-ragilenetworks/sonic-sairedis that referenced this pull request Nov 18, 2022
…onic-net#427)

* Test SAI clear api if the stats mode is READ_AND_CLEAR

Signed-off-by: Wenda <[email protected]>

* Address compile error
jianyuewu pushed a commit to jianyuewu/sonic-sairedis that referenced this pull request Feb 7, 2025
) (sonic-net#440)

* sonic-utilities: Bug fix while showing interface status for a specific interface.

* While getting the keys from port table for a specific interface, wrong db is passed, fixed the bug

Signed-off-by: [email protected]
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