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

[202012][PFCWD + Asym PFC]: Allow PFCWD to detect PFC storm on all pr… #1887

Conversation

volodymyrsamotiy
Copy link
Collaborator

…iorities when Asym PFC is enabled

Signed-off-by: Volodymyr Samotiy volodymyrs@nvidia.com

Same as #1360 but for 202012 since cherry-pick has merge conflicts

What I did
Add possibility for PFCWD to detect PFC storm on all priorities when asymmetric PFC is enabled.

According to requirements PFCWD should detect PFC storm on the lossy priorities for the port on which asymmetric PFC is enabled.
(when asymmetric PFC is enabled on some port that means such port is enabled for receiving PFC frames on all priorities)

Why I did it
To fix issue #1128.

How I verified it

  1. Enable asymmetric PFC on test port.
pfc config asymmetric on <port>
  1. Enable PFCWD on the test port.
pfcwd start --action drop --restoration-time 3000 <port> 1000
pfcwd interval 500
  1. Run pause frames to the test port for all priorities.
  2. Verify that PFCWD detected storm for all priorities.
pfcwd show stats

Details if related
N/A

@lgtm-com
Copy link

lgtm-com bot commented Aug 26, 2021

This pull request fixes 1 alert when merging 21c0f04 into 8471f42 - view on LGTM.com

fixed alerts:

  • 1 for Unused import

@liat-grozovik
Copy link
Collaborator

@volodymyrsamotiy can you please handle LGTM error?

@liat-grozovik
Copy link
Collaborator

@volodymyrsamotiy please check LGTM failure and handle

@volodymyrsamotiy
Copy link
Collaborator Author

@volodymyrsamotiy please check LGTM failure and handle

It is not related to my changes.
It looks like something generic and related to build infra:

[2021-08-26 09:01:54] [build-stderr] main.cpp:2:10: fatal error: sai.h: No such file or directory
[2021-08-26 09:01:54] [build-stderr]     2 | #include "sai.h"
[2021-08-26 09:01:54] [build-stderr]       |          ^~~~~~~
[2021-08-26 09:01:54] [build-stderr] compilation terminated.
[2021-08-26 09:01:54] [build-stdout] make[2]: Leaving directory '/opt/src/orchagent'
[2021-08-26 09:01:54] [build-stderr] make[2]: *** [Makefile:623: orchagent-main.o] Error 1

@lgtm-com
Copy link

lgtm-com bot commented Sep 3, 2021

This pull request fixes 1 alert when merging 21c0f04 into 8471f42 - view on LGTM.com

fixed alerts:

  • 1 for Unused import

@liat-grozovik
Copy link
Collaborator

@qiluo-msft do you have an idea how to overcome it?

@liat-grozovik
Copy link
Collaborator

@neethajohn could you please help to merge regardless of the LGM issue or you can suggest how to overcome it?

@liat-grozovik
Copy link
Collaborator

@volodymyrsamotiy it seems lgtm is not working also on 201911. please see #1901

@lgtm-com
Copy link

lgtm-com bot commented Sep 14, 2021

This pull request fixes 1 alert when merging 89cf1a2 into 6b0b2c4 - view on LGTM.com

fixed alerts:

  • 1 for Unused import

…iorities when Asym PFC is enabled

Signed-off-by: Volodymyr Samotiy <volodymyrs@nvidia.com>
@lgtm-com
Copy link

lgtm-com bot commented Sep 14, 2021

This pull request fixes 1 alert when merging 48973be into 6b0b2c4 - view on LGTM.com

fixed alerts:

  • 1 for Unused import

@volodymyrsamotiy
Copy link
Collaborator Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@volodymyrsamotiy
Copy link
Collaborator Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@lgtm-com
Copy link

lgtm-com bot commented Sep 27, 2021

This pull request fixes 1 alert when merging eedaf66 into ee9c30d - view on LGTM.com

fixed alerts:

  • 1 for Unused import

@liat-grozovik
Copy link
Collaborator

@neethajohn kindly reminder for the review

@qiluo-msft
Copy link
Contributor

Please resolve the conflicts.

…wd_asym_pfc_202012

Conflicts:
	orchagent/pfcactionhandler.cpp
@lgtm-com
Copy link

lgtm-com bot commented Dec 28, 2021

This pull request fixes 1 alert when merging 220cc0e into 9008a01 - view on LGTM.com

fixed alerts:

  • 1 for Unused import

@liat-grozovik
Copy link
Collaborator

/azp run Azure.sonic-swss

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik
Copy link
Collaborator

/azp run Azure.sonic-swss

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik
Copy link
Collaborator

/azp run LGTM

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@liat-grozovik
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@lgtm-com
Copy link

lgtm-com bot commented Jan 12, 2022

This pull request fixes 1 alert when merging 5e93a16 into 0b120fa - view on LGTM.com

fixed alerts:

  • 1 for Unused import

…om upstream

Signed-off-by: Volodymyr Samotiy <volodymyrs@nvidia.com>
@lgtm-com
Copy link

lgtm-com bot commented Jan 13, 2022

This pull request fixes 1 alert when merging 57f7d79 into 0b120fa - view on LGTM.com

fixed alerts:

  • 1 for Unused import

@prsunny
Copy link
Collaborator

prsunny commented Jan 13, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik
Copy link
Collaborator

@neethajohn could you please help to review?

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.

5 participants