Skip to content

[flex_counter] Add sairedis support for drop counters#520

Merged
daall merged 13 commits intosonic-net:masterfrom
daall:debug_counter_extension
Nov 12, 2019
Merged

[flex_counter] Add sairedis support for drop counters#520
daall merged 13 commits intosonic-net:masterfrom
daall:debug_counter_extension

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
@wendani wendani requested a review from qiluo-msft October 28, 2019 18:12
@daall daall force-pushed the debug_counter_extension branch from 48eb4d2 to 961dbb4 Compare October 30, 2019 19:51
@daall daall requested review from kcudnik, lguohan and yxieca November 5, 2019 23:49
@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