Skip to content

Commit

Permalink
[FlexCounter] Add trap flow counter support (#954)
Browse files Browse the repository at this point in the history
* [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.
  • Loading branch information
Junchao-Mellanox authored Nov 23, 2021
1 parent 3304daa commit a7c8cfa
Show file tree
Hide file tree
Showing 11 changed files with 882 additions and 12 deletions.
8 changes: 8 additions & 0 deletions meta/SaiSerialize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1007,6 +1007,14 @@ std::string sai_serialize_tunnel_stat(
return sai_serialize_enum(counter, &sai_metadata_enum_sai_tunnel_stat_t);
}

std::string sai_serialize_counter_stat(
_In_ const sai_counter_stat_t counter)
{
SWSS_LOG_ENTER();

return sai_serialize_enum(counter, &sai_metadata_enum_sai_counter_stat_t);
}

std::string sai_serialize_queue_attr(
_In_ const sai_queue_attr_t attr)
{
Expand Down
3 changes: 3 additions & 0 deletions meta/sai_serialize.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ std::string sai_serialize_buffer_pool_stat(
std::string sai_serialize_tunnel_stat(
_In_ const sai_tunnel_stat_t counter);

std::string sai_serialize_counter_stat(
_In_ const sai_counter_stat_t counter);

std::string sai_serialize_queue_attr(
_In_ const sai_queue_attr_t attr);

Expand Down
Loading

0 comments on commit a7c8cfa

Please sign in to comment.