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

Fix VDM freeze and unfreeze needed for PM stats collection #402

Merged
merged 4 commits into from
Nov 29, 2023

Conversation

jaganbal-a
Copy link
Contributor

…In order to collect PM stats without loss of data following vdm freeze and unfreeze request needs to be followed.

VDM freeze
PM stats collection
VDM unfreeze
Description
Currently incorrect order of freeze and unfreeze request is followed to collect PM statistics, with this the data collected prior PM interval will be lost once the unfreeze request is raised before data collection from PM stats register.

Motivation and Context
fixes #386

How Has This Been Tested?
This is tested by dumping the PM table from state-DB for the interface which holds the collected PM stats for each PM interval.

prgeor
prgeor previously approved these changes Nov 27, 2023
@prgeor
Copy link
Collaborator

prgeor commented Nov 27, 2023

@jaganbal-a please check the build failure. its related to your new change

Jaganathan Anbalagan added 2 commits November 27, 2023 15:56
…e and unfreeze request needs to be followed.

VDM freeze
PM stats collection
VDM unfreeze
Addressing PR comments.
Removed VDM statistics freeze/unfreeze performed inside standard APIs.
It should be performed by xcvrd explicitly.
@prgeor
Copy link
Collaborator

prgeor commented Nov 28, 2023

@jaganbal-a i think its still failing the build. better to run locally.

@jaganbal-a
Copy link
Contributor Author

jaganbal-a commented Nov 28, 2023

@jaganbal-a i think its still failing the build. better to run locally.

I ran the test cases locally and it is 100% pass, here the criteria fails because of 77% code coverage, the try except coverage test case needs to be added to cover 80+%.

@prgeor prgeor merged commit 2efe97e into sonic-net:master Nov 29, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect vdm freeze and unfreeze is followed on collecting PM stats
2 participants