Skip to content

[Snappi] Fix tx/rx port sequence in test_pfc_port_congestion.py#19445

Merged
yejianquan merged 2 commits intosonic-net:masterfrom
sdszhang:ixia_pfc_congestion
Jul 31, 2025
Merged

[Snappi] Fix tx/rx port sequence in test_pfc_port_congestion.py#19445
yejianquan merged 2 commits intosonic-net:masterfrom
sdszhang:ixia_pfc_congestion

Conversation

@sdszhang
Copy link
Copy Markdown
Contributor

@sdszhang sdszhang commented Jul 7, 2025

Description of PR

Summary:
Fixes the following issues in test_pfc_port_congestion.py:

  1. Fixed the rx/tx port sequence, the currnet port_map is defined as [total egress port, egress port speed, total ingress ports, ingress port speed]. So get the rx port info from the first two elements.
  2. pfcwd will be triggered on cisco platform as we are sending oversubscribed traffic, so disabling it during the test.

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505

Approach

What is the motivation for this PR?

Adopt this test case for 400G speed

How did you do it?

Fixed the case to use correct RX/TX port_map sequence. and disable pfcwd inside the test case.

How did you verify/test it?

snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_diff_dist[multidut_port_info0-port_map0] SKIPPED [  6%]
snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_diff_dist[multidut_port_info0-port_map1] 
-------------------------------- live log call ---------------------------------
05:07:37 connection._warn                         L0332 WARNING| Verification of certificates is disabled
05:07:37 connection._warn                         L0332 WARNING| Unable to connect to http://10.206.144.17:443.
PASSED                                                                   [ 12%]
snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_diff_dist[multidut_port_info1-port_map0] SKIPPED [ 18%]
snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_diff_dist[multidut_port_info1-port_map1] PASSED [ 25%]
snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_uni_dist[multidut_port_info0-port_map0] SKIPPED [ 31%]
snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_uni_dist[multidut_port_info0-port_map1] PASSED [ 37%]
snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_uni_dist[multidut_port_info1-port_map0] SKIPPED [ 43%]
snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_uni_dist[multidut_port_info1-port_map1] PASSED [ 50%]
snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_equal_dist[multidut_port_info0-port_map0] SKIPPED [ 56%]
snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_equal_dist[multidut_port_info0-port_map1] PASSED [ 62%]
snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_equal_dist[multidut_port_info1-port_map0] SKIPPED [ 68%]
snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_equal_dist[multidut_port_info1-port_map1] PASSED [ 75%]
snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_non_cngtn[multidut_port_info0-port_map0] SKIPPED [ 81%]
snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_non_cngtn[multidut_port_info0-port_map1] PASSED [ 87%]
snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_non_cngtn[multidut_port_info1-port_map0] SKIPPED [ 93%]
snappi_tests/pfc/test_pfc_port_congestion.py::test_multiple_prio_non_cngtn[multidut_port_info1-port_map1] PASSED [100%]

Any platform specific information?

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

Documentation

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@sdszhang sdszhang moved this to In Progress in SONiC Snappi Jul 7, 2025
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@sdszhang sdszhang moved this from In Progress to To be Merged in SONiC Snappi Jul 30, 2025
@yejianquan yejianquan merged commit 621cfcc into sonic-net:master Jul 31, 2025
11 checks passed
@github-project-automation github-project-automation bot moved this from To be Merged to Done in SONiC Snappi Jul 31, 2025
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Jul 31, 2025
…c-net#19445)

* swap rx tx port and disable pfcwd

* disable pfcwd for cisco chassis.
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202505: #19959

@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to msft-202405: Azure/sonic-mgmt.msft#598

mssonicbld pushed a commit that referenced this pull request Jul 31, 2025
* swap rx tx port and disable pfcwd

* disable pfcwd for cisco chassis.
nissampa pushed a commit to nissampa/sonic-mgmt_dpu_test that referenced this pull request Aug 7, 2025
…c-net#19445)

* swap rx tx port and disable pfcwd

* disable pfcwd for cisco chassis.
ashutosh-agrawal pushed a commit to ashutosh-agrawal/sonic-mgmt that referenced this pull request Aug 14, 2025
…c-net#19445)

* swap rx tx port and disable pfcwd

* disable pfcwd for cisco chassis.
@sdszhang sdszhang deleted the ixia_pfc_congestion branch September 13, 2025 10:22
kanchanavelusamy pushed a commit to kanchanavelusamy/sonic-mgmt that referenced this pull request Oct 7, 2025
…c-net#19445)

* swap rx tx port and disable pfcwd

* disable pfcwd for cisco chassis.
vidyac86 pushed a commit to vidyac86/sonic-mgmt that referenced this pull request Oct 23, 2025
…c-net#19445)

* swap rx tx port and disable pfcwd

* disable pfcwd for cisco chassis.
opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
…c-net#19445)

* swap rx tx port and disable pfcwd

* disable pfcwd for cisco chassis.

Signed-off-by: opcoder0 <110003254+opcoder0@users.noreply.github.com>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 16, 2025
…c-net#19445)

* swap rx tx port and disable pfcwd

* disable pfcwd for cisco chassis.

Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Dec 16, 2025
…c-net#19445)

* swap rx tx port and disable pfcwd

* disable pfcwd for cisco chassis.

Signed-off-by: Aharon Malkin <amalkin@nvidia.com>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
…c-net#19445)

* swap rx tx port and disable pfcwd

* disable pfcwd for cisco chassis.

Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Jan 13, 2026
…c-net#19445)

* swap rx tx port and disable pfcwd

* disable pfcwd for cisco chassis.
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
…c-net#19445)

* swap rx tx port and disable pfcwd

* disable pfcwd for cisco chassis.

Signed-off-by: Guy Shemesh <gshemesh@nvidia.com>
ytzur1 pushed a commit to ytzur1/sonic-mgmt that referenced this pull request Feb 2, 2026
…c-net#19445)

* swap rx tx port and disable pfcwd

* disable pfcwd for cisco chassis.

Signed-off-by: Yael Tzur <ytzur@nvidia.com>
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
Why I did it
DEFAULT_CONTAINER_REGISTRY didn't work as expected in some scenario.

How I did it
When check for docker arch, use DEFAULT_CONTAINER_REGISTRY if it is not null.
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Mar 27, 2026
…c-net#19445)

* swap rx tx port and disable pfcwd

* disable pfcwd for cisco chassis.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants