Skip to content

Commit

Permalink
Add metadata serialization support for buffer pool stats (sonic-net#448)
Browse files Browse the repository at this point in the history
Signed-off-by: Wenda Ni <wenni@microsoft.com>
  • Loading branch information
wendani authored and lguohan committed Apr 23, 2019
1 parent a17e54e commit 3d87ad1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions meta/sai_serialize.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ std::string sai_serialize_ingress_priority_group_stat(
std::string sai_serialize_ingress_priority_group_attr(
_In_ const sai_ingress_priority_group_attr_t attr);

std::string sai_serialize_buffer_pool_stat(
_In_ const sai_buffer_pool_stat_t counter);

std::string sai_serialize_tunnel_stat(
_In_ const sai_tunnel_stat_t counter);

Expand Down
8 changes: 8 additions & 0 deletions meta/saiserialize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,14 @@ std::string sai_serialize_ingress_priority_group_attr(
return sai_serialize_enum(attr, &sai_metadata_enum_sai_ingress_priority_group_attr_t);
}

std::string sai_serialize_buffer_pool_stat(
_In_ const sai_buffer_pool_stat_t counter)
{
SWSS_LOG_ENTER();

return sai_serialize_enum(counter, &sai_metadata_enum_sai_buffer_pool_stat_t);
}

std::string sai_serialize_tunnel_stat(
_In_ const sai_tunnel_stat_t counter)
{
Expand Down

0 comments on commit 3d87ad1

Please sign in to comment.