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

dpdklab at iol.unh.edu dpdklab at iol.unh.edu
Thu Nov 26 07:18:53 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. app/test/test_sched.c: the new test leaks resources when an assertion fails.

   `TEST_ASSERT_*` returns immediately on failure, so any failed assertion after these lines skips the cleanup at the end of the function:

   ```
   mp = create_mempool();
   ...
   port = rte_sched_port_config(&port_params);
   ```

   On those paths `mp` and `port` are never released:

   ```
   rte_sched_port_free(port);
   rte_mempool_free(mp);
   ```

   This only matters for repeated runs in the same process, where a named mempool from `create_mempool()` would make a second run fail on name collision.

   Consider routing failures through a cleanup label, or moving the port and mempool setup and teardown into a `unit_test_suite` `setup`/`teardown` pair.

Review-Result: CLEAN


More information about the test-report mailing list