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

Add buffer pool stat to flex counter architecture #451

Merged
merged 17 commits into from
May 26, 2019

Conversation

wendani
Copy link
Contributor

@wendani wendani commented Apr 23, 2019

  1. Add control path to BUFFER_POOL_PLUGIN_LIST
  2. Add metadata deserialization support for buffer pool stats
    Deserialize buffer pool counter id list to SAI stats
  3. Implement setBufferPoolCounterList
  4. Implement removeBufferPool which is the removal counterpart to setBufferPoolCounterList
  5. Add buffer pool lua script to plugins to run
  6. Add buffer pool stat in data collection

wendani added 13 commits April 23, 2019 20:43
Signed-off-by: Wenda Ni <wenni@microsoft.com>
Signed-off-by: Wenda Ni <wenni@microsoft.com>
Signed-off-by: Wenda Ni <wenni@microsoft.com>
Signed-off-by: Wenda Ni <wenni@microsoft.com>
Signed-off-by: Wenda Ni <wenni@microsoft.com>
Signed-off-by: Wenda Ni <wenni@microsoft.com>
setBufferPoolCounterList

Signed-off-by: Wenda Ni <wenni@microsoft.com>
Correct compliation error

Signed-off-by: Wenda Ni <wenni@microsoft.com>
Signed-off-by: Wenda Ni <wenni@microsoft.com>
Signed-off-by: Wenda Ni <wenni@microsoft.com>
Signed-off-by: Wenda Ni <wenni@microsoft.com>
Signed-off-by: Wenda Ni <wenni@microsoft.com>
Signed-off-by: Wenda Ni <wenni@microsoft.com>
@wendani wendani changed the title Buf pool stat master new Add buffer pool stat to flex counter architecture Apr 23, 2019
Signed-off-by: Wenda Ni <wenni@microsoft.com>
@lguohan
Copy link
Contributor

lguohan commented Apr 24, 2019

build failure, can you check?

// m_statsMode,
// queueStats.data());
#if 0
TODO: replace if with get_queue_stats_ext() call when it is fully supported
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why use #if 0?
If you are going to use it, add '//' in L#928 and remove L#929 entirely

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks prettier in vim

@lguohan
Copy link
Contributor

lguohan commented May 10, 2019

can you look at the build failure?

@sonic-net sonic-net deleted a comment from lguohan May 24, 2019
@sonic-net sonic-net deleted a comment from lguohan May 24, 2019
@sonic-net sonic-net deleted a comment from lguohan May 24, 2019
wendani added 2 commits May 24, 2019 17:06
Signed-off-by: Wenda Ni <wenni@microsoft.com>
Signed-off-by: Wenda Ni <wenni@microsoft.com>
@wendani
Copy link
Contributor Author

wendani commented May 25, 2019

retest this please

@lguohan lguohan merged commit dcab09f into sonic-net:master May 26, 2019
pettershao-ragilenetworks pushed a commit to pettershao-ragilenetworks/sonic-sairedis that referenced this pull request Nov 18, 2022
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.

4 participants