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

[QoS] Enforce drop probability only for colors whose WRED are enabled #2422

Merged
merged 4 commits into from
Sep 14, 2022

Conversation

stephenxs
Copy link
Collaborator

@stephenxs stephenxs commented Aug 22, 2022

What I did

Do not enforce drop probability for a color whose WRED is disabled.

Signed-off-by: Stephen Sun [email protected]

Why I did it

Currently, there is a logic to enforce the drop probability if it is not explicitly designated for a color. However, the drop probability is not a mandatory attribute. It can incur vendor SAI complaints to set it when the color is disabled.
The logic was introduced from the very beginning (by PR #571) because no drop probability was defined in the QoS template at the time, which is no longer true.
So we will enforce drop probability only if it is not configured and the color is enabled.

How I verified it

Unit test and manual test

Details if related

@stephenxs stephenxs marked this pull request as ready for review August 22, 2022 06:03
@liat-grozovik
Copy link
Collaborator

@stephenxs it is for master only or a bug fix for 202205?

@liat-grozovik
Copy link
Collaborator

@neethajohn , @prsunny could you please help to review and signoff?

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Sep 11, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

@neethajohn neethajohn merged commit efa0f01 into sonic-net:master Sep 14, 2022
stephenxs added a commit to stephenxs/sonic-swss that referenced this pull request Sep 19, 2022
…sonic-net#2422)

What I did
Do not enforce drop probability for a color whose WRED is disabled.

Signed-off-by: Stephen Sun [email protected]

Why I did it
Currently, there is a logic to enforce the drop probability if it is not explicitly designated for a color. However, the drop probability is not a mandatory attribute. It can incur vendor SAI complaints to set it when the color is disabled.
The logic was introduced from the very beginning (by PR sonic-net#571) because no drop probability was defined in the QoS template at the time, which is no longer true.
So we will enforce drop probability only if it is not configured and the color is enabled.

How I verified it
Unit test and manual test
@stephenxs stephenxs deleted the remove-enforce-wred-drop branch September 21, 2022 00:25
volodymyrsamotiy added a commit to volodymyrsamotiy/sonic-swss that referenced this pull request Sep 21, 2022
yxieca pushed a commit that referenced this pull request Sep 21, 2022
…#2422)

What I did
Do not enforce drop probability for a color whose WRED is disabled.

Signed-off-by: Stephen Sun [email protected]

Why I did it
Currently, there is a logic to enforce the drop probability if it is not explicitly designated for a color. However, the drop probability is not a mandatory attribute. It can incur vendor SAI complaints to set it when the color is disabled.
The logic was introduced from the very beginning (by PR #571) because no drop probability was defined in the QoS template at the time, which is no longer true.
So we will enforce drop probability only if it is not configured and the color is enabled.

How I verified it
Unit test and manual test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants