Skip to content

[202012][pfcwd] Convert polling interval from ms to us in LUA scripts#1909

Merged
qiluo-msft merged 1 commit intosonic-net:202012from
volodymyrsamotiy:pfcwd_fix_202012
Sep 16, 2021
Merged

[202012][pfcwd] Convert polling interval from ms to us in LUA scripts#1909
qiluo-msft merged 1 commit intosonic-net:202012from
volodymyrsamotiy:pfcwd_fix_202012

Conversation

@volodymyrsamotiy
Copy link
Collaborator

@volodymyrsamotiy volodymyrsamotiy commented Sep 15, 2021

Signed-off-by: Volodymyr Samotiy [email protected]

What I did
Converted polling interval from milliseconds to microseconds in PFCWD LUA scripts.
Same as PR #1908 but created directly against 202012 release branch

Why I did it
PFCWD storm detection and restoration LUA scripts require values in microseconds.
Due to recent changes polling interval is now passed in milliseconds by "FlexCounter".

So need to convert values to microseconds (as it was before) in order to make PFCWD working,

How I verified it
Ran PFCWD tests from sonic-mgmt.

Details if related
N/A

PFCWD storm detection and restoration LUA scripts require values in microseconds.
Due to recent changes polling interval is now passed in milliseconds by "FlexCounter".
* sonic-net/sonic-sairedis#878

Signed-off-by: Volodymyr Samotiy <[email protected]>
@volodymyrsamotiy
Copy link
Collaborator Author

Same as PR #1908 but created directly against 202012 release branch

@qiluo-msft qiluo-msft merged commit c3691d3 into sonic-net:202012 Sep 16, 2021
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.

3 participants