Skip to content

[PFCWD] Fix ZeroBufferProfile parameters#485

Merged
lguohan merged 1 commit intosonic-net:masterfrom
andriymoroz-mlnx:fix_pfcwd_zero_profile
Apr 23, 2018
Merged

[PFCWD] Fix ZeroBufferProfile parameters#485
lguohan merged 1 commit intosonic-net:masterfrom
andriymoroz-mlnx:fix_pfcwd_zero_profile

Conversation

@andriymoroz-mlnx
Copy link
Copy Markdown
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>

attr.id = SAI_BUFFER_PROFILE_ATTR_SHARED_DYNAMIC_TH;
attr.value.u32 = 1;
attr.value.u32 = -8; // ALPHA_0
Copy link
Copy Markdown
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.
Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
Signed-off-by: Andriy Moroz <c_andriym@mellanox.com>
jianyuewu pushed a commit to jianyuewu/sonic-swss that referenced this pull request Dec 24, 2025
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