|SUCCESS| [v2] sched: fix queue stats read for mixed subports

dpdklab at iol.unh.edu dpdklab at iol.unh.edu
Thu Nov 26 07:41:36 CET 2026


Test-Label: ai-code-review
Test-Status: SUCCESS
https://dpdk.org/patch/173186

_AI Code Review_

=== Patch Review: series.patch (via Claude) ===
Review date: 2026-11-26

**Info**

1. In `test_sched_hetero_subports()`, the early returns from `TEST_ASSERT_*` after allocation skip cleanup.

   After `mp = create_mempool();` and `port = rte_sched_port_config(&port_params);`, every failing assertion returns without freeing the port or the mempool. For example:
   ```
   TEST_ASSERT_SUCCESS(err,
   	"Error config sched subport %u, err=%d\n", i, err);
   ```
   The enqueue/dequeue assertions also leak `mbufs[0]` if they fail:
   ```
   TEST_ASSERT_EQUAL(err, 1, "Wrong enqueue, err=%d\n", err);
   ```
   This only matters on test failure. It is still cleaner to use a `goto` cleanup label, or a `unit_test_suite_runner` setup/teardown, that calls `rte_sched_port_free()` and `rte_mempool_free()`. A failed run then won't leave resources behind for later tests in the same process.

Review-Result: CLEAN


More information about the test-report mailing list