Skip to content

[pfcwd] Add testcase for pfcwd multi port storm trigger and restore#8709

Merged
neethajohn merged 1 commit intosonic-net:masterfrom
neethajohn:pfcwd_multi_port
Jun 26, 2023
Merged

[pfcwd] Add testcase for pfcwd multi port storm trigger and restore#8709
neethajohn merged 1 commit intosonic-net:masterfrom
neethajohn:pfcwd_multi_port

Conversation

@neethajohn
Copy link
Contributor

Description of PR

Summary:
Fixes #5239

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911
  • 202012
  • 202205

Approach

What is the motivation for this PR?

Add a testcase to test pfcwd detection/restoration/action when 2 ports are in storm one after the other

How did you verify/test it?

Ran the entire pfcwd functionality suite against brcm and mlnx platforms and they passed

collected 4 items                                                                                                                                                                                                                       

pfcwd/test_pfcwd_function.py::TestPfcwdFunc::test_pfcwd_actions[str2-dx010-acs-7-None] PASSED                                                                                                                                     [ 25%]
pfcwd/test_pfcwd_function.py::TestPfcwdFunc::test_pfcwd_multi_port[str2-dx010-acs-7-None] PASSED                                                                                                                                  [ 50%]
pfcwd/test_pfcwd_function.py::TestPfcwdFunc::test_pfcwd_mmu_change[str2-dx010-acs-7-None] PASSED                                                                                                                                  [ 75%]
pfcwd/test_pfcwd_function.py::TestPfcwdFunc::test_pfcwd_port_toggle[str2-dx010-acs-7-None] PASSED                                                                                                                                 [100%]

-------------------------------------------------------------------------------------------- generated xml file: /var/nejo/tests/logs/tr.xml --------------------------------------------------------------------------------------------================================================================================================ 4 passed, 1 warnings in 2049.92 seconds ================================================================================================

collected 4 items                                                                                                                                                                                                                       

pfcwd/test_pfcwd_function.py::TestPfcwdFunc::test_pfcwd_actions[str-msn2700-22-None] PASSED                                                                                                                                       [ 25%]
pfcwd/test_pfcwd_function.py::TestPfcwdFunc::test_pfcwd_multi_port[str-msn2700-22-None] PASSED                                                                                                                                    [ 50%]
pfcwd/test_pfcwd_function.py::TestPfcwdFunc::test_pfcwd_mmu_change[str-msn2700-22-None] PASSED                                                                                                                                    [ 75%]
pfcwd/test_pfcwd_function.py::TestPfcwdFunc::test_pfcwd_port_toggle[str-msn2700-22-None] PASSED                                                                                                                                   [100%]

-------------------------------------------------------------------------------------------- generated xml file: /var/nejo/tests/logs/tr.xml --------------------------------------------------------------------------------------------
================================================================================================ 4 passed, 1 warnings in 2171.81 seconds ================================================================================================

Signed-off-by: Neetha John <nejo@microsoft.com>
@neethajohn neethajohn requested a review from lipxu as a code owner June 23, 2023 18:37
@lipxu
Copy link
Contributor

lipxu commented Jun 26, 2023

Hi, @neethajohn , seems this case is for triggering of PFCWD behavior on multiple ports sequentially, Is there any difference in behavior between triggering PFCWD on multiple ports simultaneously?

@neethajohn
Copy link
Contributor Author

Hi, @neethajohn , seems this case is for triggering of PFCWD behavior on multiple ports sequentially, Is there any difference in behavior between triggering PFCWD on multiple ports simultaneously?

Yes, there was some issues seen in some platforms when wd was triggered sequentially but could not see any issues when wd was triggered simulataneously on multiple ports, hence this testcase

@neethajohn
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@neethajohn neethajohn merged commit 3b82303 into sonic-net:master Jun 26, 2023
@neethajohn neethajohn deleted the pfcwd_multi_port branch June 26, 2023 20:31
wangxin pushed a commit that referenced this pull request Jul 13, 2023
… restore (#8911)

Backport #8709

Signed-off-by: Neetha John <nejo@microsoft.com>
neethajohn added a commit to neethajohn/sonic-mgmt that referenced this pull request Sep 20, 2023
Backport sonic-net#8709

Signed-off-by: Neetha John <nejo@microsoft.com>
neethajohn added a commit that referenced this pull request Sep 21, 2023
…restore (#10083)

* Add testcase for pfcwd multi port storm trigger and restore

Backport #8709

Signed-off-by: Neetha John <nejo@microsoft.com>
mrkcmo pushed a commit to Azarack/sonic-mgmt that referenced this pull request Oct 3, 2023
…onic-net#8709)

Signed-off-by: Neetha John <nejo@microsoft.com>

What is the motivation for this PR?
Add a testcase to test pfcwd detection/restoration/action when 2 ports are in storm one after the other

How did you verify/test it?
Ran the entire pfcwd functionality suite against brcm and mlnx platforms and they passed

collected 4 items                                                                                                                                                                                                                       

pfcwd/test_pfcwd_function.py::TestPfcwdFunc::test_pfcwd_actions[str2-dx010-acs-7-None] PASSED                                                                                                                                     [ 25%]
pfcwd/test_pfcwd_function.py::TestPfcwdFunc::test_pfcwd_multi_port[str2-dx010-acs-7-None] PASSED                                                                                                                                  [ 50%]
pfcwd/test_pfcwd_function.py::TestPfcwdFunc::test_pfcwd_mmu_change[str2-dx010-acs-7-None] PASSED                                                                                                                                  [ 75%]
pfcwd/test_pfcwd_function.py::TestPfcwdFunc::test_pfcwd_port_toggle[str2-dx010-acs-7-None] PASSED                                                                                                                                 [100%]

-------------------------------------------------------------------------------------------- generated xml file: /var/nejo/tests/logs/tr.xml --------------------------------------------------------------------------------------------================================================================================================ 4 passed, 1 warnings in 2049.92 seconds ================================================================================================

collected 4 items                                                                                                                                                                                                                       

pfcwd/test_pfcwd_function.py::TestPfcwdFunc::test_pfcwd_actions[str-msn2700-22-None] PASSED                                                                                                                                       [ 25%]
pfcwd/test_pfcwd_function.py::TestPfcwdFunc::test_pfcwd_multi_port[str-msn2700-22-None] PASSED                                                                                                                                    [ 50%]
pfcwd/test_pfcwd_function.py::TestPfcwdFunc::test_pfcwd_mmu_change[str-msn2700-22-None] PASSED                                                                                                                                    [ 75%]
pfcwd/test_pfcwd_function.py::TestPfcwdFunc::test_pfcwd_port_toggle[str-msn2700-22-None] PASSED                                                                                                                                   [100%]

-------------------------------------------------------------------------------------------- generated xml file: /var/nejo/tests/logs/tr.xml --------------------------------------------------------------------------------------------
================================================================================================ 4 passed, 1 warnings in 2171.81 seconds ================================================================================================
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Jan 25, 2024
…onic-net#8709)

Signed-off-by: Neetha John <nejo@microsoft.com>

What is the motivation for this PR?
Add a testcase to test pfcwd detection/restoration/action when 2 ports are in storm one after the other

How did you verify/test it?
Ran the entire pfcwd functionality suite against brcm and mlnx platforms and they passed

collected 4 items                                                                                                                                                                                                                       

pfcwd/test_pfcwd_function.py::TestPfcwdFunc::test_pfcwd_actions[str2-dx010-acs-7-None] PASSED                                                                                                                                     [ 25%]
pfcwd/test_pfcwd_function.py::TestPfcwdFunc::test_pfcwd_multi_port[str2-dx010-acs-7-None] PASSED                                                                                                                                  [ 50%]
pfcwd/test_pfcwd_function.py::TestPfcwdFunc::test_pfcwd_mmu_change[str2-dx010-acs-7-None] PASSED                                                                                                                                  [ 75%]
pfcwd/test_pfcwd_function.py::TestPfcwdFunc::test_pfcwd_port_toggle[str2-dx010-acs-7-None] PASSED                                                                                                                                 [100%]

-------------------------------------------------------------------------------------------- generated xml file: /var/nejo/tests/logs/tr.xml --------------------------------------------------------------------------------------------================================================================================================ 4 passed, 1 warnings in 2049.92 seconds ================================================================================================

collected 4 items                                                                                                                                                                                                                       

pfcwd/test_pfcwd_function.py::TestPfcwdFunc::test_pfcwd_actions[str-msn2700-22-None] PASSED                                                                                                                                       [ 25%]
pfcwd/test_pfcwd_function.py::TestPfcwdFunc::test_pfcwd_multi_port[str-msn2700-22-None] PASSED                                                                                                                                    [ 50%]
pfcwd/test_pfcwd_function.py::TestPfcwdFunc::test_pfcwd_mmu_change[str-msn2700-22-None] PASSED                                                                                                                                    [ 75%]
pfcwd/test_pfcwd_function.py::TestPfcwdFunc::test_pfcwd_port_toggle[str-msn2700-22-None] PASSED                                                                                                                                   [100%]

-------------------------------------------------------------------------------------------- generated xml file: /var/nejo/tests/logs/tr.xml --------------------------------------------------------------------------------------------
================================================================================================ 4 passed, 1 warnings in 2171.81 seconds ================================================================================================
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.

Add PFCWD test to verify storm detection on multiple ports

3 participants