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

[flex_counter] Add sairedis support for drop counters #520

Merged
merged 13 commits into from
Nov 12, 2019

Conversation

daall
Copy link
Contributor

@daall daall commented Sep 25, 2019

Add sairedis support for drop counters.

  • Create two new flex counter types for handling port and switch level debug counters
  • Add serialization functions to handle debug counter attributes
  • Add stubs for querying device capabilities

Depends on:
- sonic-net/SONiC#434
- sonic-net/sonic-swss-common#308

Signed-off-by: Danny Allen [email protected]

@daall daall self-assigned this Sep 25, 2019
@daall daall changed the title [flex_counter] Add support for polling port-level debug counters [flex_counter] Add sairedis support for drop counters Sep 30, 2019
@daall daall marked this pull request as ready for review October 1, 2019 18:26
@daall daall force-pushed the debug_counter_extension branch 2 times, most recently from 89b4dc0 to fac27c2 Compare October 28, 2019 16:37
syncd/syncd_flex_counter.h Outdated Show resolved Hide resolved
syncd/syncd_flex_counter.h Outdated Show resolved Hide resolved
@daall daall merged commit 1aa5ebf into sonic-net:master Nov 12, 2019
@daall daall deleted the debug_counter_extension branch November 12, 2019 19:53
pettershao-ragilenetworks pushed a commit to pettershao-ragilenetworks/sonic-sairedis that referenced this pull request Nov 18, 2022
* Adds functions to syncd_flex_counter for configuring and polling port-level debug counters

Signed-off-by: Danny Allen [email protected]

* Remove uneccesary includes

* Add stubs for querying sai capabilities

* Add support for serializing debug counter attributes

* Add support for switch level debug counters

* Improve vslib support for debug counters

* Remove interface query stubs

* Add missing swss log

* Clean-up virtual switch implementation

* Simplify vs debug counters

* Remove unnecessary includes

* Fix formatting

* Respond to review comments
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