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

[PFCWD] Fix ZeroBufferProfile parameters #485

Merged
merged 1 commit into from
Apr 23, 2018

Conversation

andriymoroz-mlnx
Copy link
Contributor

Signed-off-by: Andriy Moroz c_andriym@mellanox.com

What I did
Fixed used by pfcwd "zero buffer profile" parameters (alpha)

Why I did it
To create proper profile which will drop packets

How I verified it
Create/simulate storm on port, make sure pfcwd assigned "zero profile" on one of it's queues

Details if related

Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
@lguohan lguohan merged commit ccaa769 into sonic-net:master Apr 23, 2018
lguohan pushed a commit that referenced this pull request May 10, 2018
Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
@@ -593,7 +593,7 @@ void PfcWdZeroBufferHandler::ZeroBufferProfile::createZeroBufferProfile(bool ing
attribs.push_back(attr);

attr.id = SAI_BUFFER_PROFILE_ATTR_SHARED_DYNAMIC_TH;
attr.value.u32 = 1;
attr.value.u32 = -8; // ALPHA_0
Copy link
Contributor

Choose a reason for hiding this comment

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

@andriymoroz-mlnx This usage of alpha == -8, indicating zero shared pool, is MLNX proprietary, not defined/standardized in SAI SAI_BUFFER_PROFILE_ATTR_SHARED_DYNAMIC_TH

EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-swss that referenced this pull request Mar 1, 2023
Add STATS_MODE field parsing when oid in FLEX_COUTER_TABLE key is SAI_OBJECT_TYPE_BUFFER_POOL.

Use READ_AND_CLEAR mode when either global stats polling mode or the particular buffer pool stats polling mode is READ_AND_CLEAR.

In the opposite, use READ mode (no stats clear) only when both global and per buffer pool stats polling mode are READ.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants