Skip to content

[action] [PR:19445] [Snappi] Fix tx/rx port sequence in test_pfc_port_congestion.py#598

Merged
mssonicbld merged 1 commit intoAzure:202405from
mssonicbld:cherry/msft-202405/19445
Jul 31, 2025
Merged

[action] [PR:19445] [Snappi] Fix tx/rx port sequence in test_pfc_port_congestion.py#598
mssonicbld merged 1 commit intoAzure:202405from
mssonicbld:cherry/msft-202405/19445

Conversation

@mssonicbld
Copy link
Copy Markdown
Collaborator

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

<!--
Please make sure you've read and understood our contributing guidelines;
https://github.com/sonic-net/SONiC/blob/gh-pages/CONTRIBUTING.md

Please provide following information to help code review process a bit easier:
-->
### Description of PR
<!--
- Please include a summary of the change and which issue is fixed.
- Please also include relevant motivation and context. Where should reviewer start? background context?
- List any dependencies that are required for this change.
-->

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

<!--
- Fill x for your type of change.
- e.g.
- [x] Bug fix
-->

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

### Back port request
- [ ] 202205
- [ ] 202305
- [ ] 202311
- [x] 202405
- [x] 202411
- [x] 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
<!--
(If it's a new feature, new test case)
Did you update documentation/Wiki relevant to your implementation?
Link to the wiki page?
-->
@mssonicbld
Copy link
Copy Markdown
Collaborator Author

Original PR: sonic-net/sonic-mgmt#19445

@mssonicbld
Copy link
Copy Markdown
Collaborator Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@mssonicbld mssonicbld merged commit 269d981 into Azure:202405 Jul 31, 2025
4 checks passed
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.

1 participant