-
Notifications
You must be signed in to change notification settings - Fork 273
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
[FlexCounter] Add trap flow counter support #954
[FlexCounter] Add trap flow counter support #954
Conversation
Build dependency: sonic-net/sonic-swss-common#534 |
Hi @qiluo-msft , could you please suggest a reviewer? |
Hi @kcudnik , It seems the build is timeout, could you help check the issue? I suppose it is not related to the code change. |
/azpw run |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azpw run |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azpw run |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
1ece420
to
d27271a
Compare
/azpw run |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
d27271a
to
66a0447
Compare
/azpw run |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run Azure.sonic-sairedis |
please resolve conflicts after merging ACL counters |
ee6487c
to
5b77bf7
Compare
/azpw run |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azpw run |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
Hi @kcudnik , the failure "Cancelled after 180m" is not caused by my change. I see that the step "Install dependencies" takes almost 3hrs. |
/azpw run |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azpw run |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
why you need mockable interface at all? and not use "-fno-access-control" to have access to private methods and also please dont put code in header files |
Hi @kcudnik ,
|
in my understanding Mock class should be only wrapper to expose methods/variables for which we don't have have access since they are ether protected or private, and testing them directly would be much simpler. Behavior should be the same since mock should be created for specific class ?, it could be for base interface also i guess |
Maybe "-fno-access-control" can do the job. But MockableInterface provide following capability:
|
c154c39
to
cdb6c6b
Compare
* [FlexCounter] Add trap flow counter support * Flow counters are usually used for debugging, troubleshooting and performance enhancement processes. Host interface trap counter can get number of received traps per Trap ID.
What I did
Add trap flow counter support. See HLD: sonic-net/SONiC#858
Why I did it
Flow counters are usually used for debugging, troubleshooting and performance enhancement processes. Host interface trap counter can get number of received traps per Trap ID.
How I verified it
Manual test/VS test/sonic mgmt test
Details if related