-
Notifications
You must be signed in to change notification settings - Fork 283
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
Use switch object to detect counter capability in flex counter #1540
base: master
Are you sure you want to change the base?
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
syncd/FlexCounter.cpp
Outdated
@@ -479,6 +479,9 @@ class CounterContext : public BaseCounterContext | |||
{ | |||
std::map<std::string, uint32_t> m_counterChunkSizeMapFromPrefix; | |||
|
|||
protected: | |||
sai_object_id_t m_switchId; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this dont need to be a member, move it to function locally, since you are using this in 1 place
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but I do not want to fetch it every time it is called since the switch id hasn't changed
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Stephen Sun <[email protected]>
Signed-off-by: Stephen Sun <[email protected]>
251efe6
to
929ee1d
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azpw run |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
Use switch object to detect counter capability in flex counter. This is to fix the follow error message on VS platform
This was a day 1 issue but is exposed recently.