Skip to content

[action] [PR:13976] Degrade PFC storm detection in PFCWD all ports storm test#14093

Merged
mssonicbld merged 1 commit intosonic-net:202311from
mssonicbld:cherry/202311/13976
Aug 13, 2024
Merged

[action] [PR:13976] Degrade PFC storm detection in PFCWD all ports storm test#14093
mssonicbld merged 1 commit intosonic-net:202311from
mssonicbld:cherry/202311/13976

Conversation

@mssonicbld
Copy link
Copy Markdown
Collaborator

Description of PR

Summary:
This PR is to degrade the PFC storm detection logic on Mellanox platform to workaround the performance issue of leaf-fanout switch.

The test_pfcwd_all_port_storm.py is failing because leaf fanout switch can't send enough PFC pause frames to trigger PFC storm after PR sonic-net/sonic-swss#3036 .
There are different workaround method on Onyx and Mellanox-SONiC leaf-fanout, but there is no workaround for DUT that is not connected to Mellanox leaf-fanout switch.
This PR workaround the issue by copying the old pfc_detect_mellanox.lua to degrade the PFC storm detection logic to make PFC storm easier to be triggered.
As the test is to verify there is no issue when PFCWD is firing on all ports, this change doesn't change the coverage of test.

Type of change

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

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

Approach

What is the motivation for this PR?

This PR workaround the issue by copying the old pfc_detect_mellanox.lua to degrade the PFC storm detection logic to make PFC storm easier to be triggered.

How did you do it?

Cppy the old pfc_detect_mellanox.lua to degrade the PFC storm detection logic.

How did you verify/test it?

The change is verified on a Mellanox DUT.

collected 1 item 

pfcwd/test_pfcwd_all_port_storm.py::TestPfcwdAllPortStorm::test_all_port_storm_restore[str-msn2700-22] ^HPASSED [100%]

Any platform specific information?

Mellanox platform specific.

Supported testbed topology if it's a new test case?

Not a new test case.

Documentation

…13976)

* Degrade PFC storm detection logic in pfcwd_all_port_storm test
@mssonicbld
Copy link
Copy Markdown
Collaborator Author

Original PR: #13976

@mssonicbld mssonicbld merged commit d784f37 into sonic-net:202311 Aug 13, 2024
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.

2 participants