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

dpdklab at iol.unh.edu dpdklab at iol.unh.edu
Thu Nov 26 07:00:05 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. The new test leaks the port and mempool whenever an assertion fails.
   The `TEST_ASSERT_*` macros return immediately on failure, so these resources are never released:
   ```
   port = rte_sched_port_config(&port_params);
   TEST_ASSERT_NOT_NULL(port, "Error config sched port\n");
   ```
   After this point, any failing assertion returns without calling `rte_sched_port_free(port)` or `rte_mempool_free(mp)`.
   If the enqueue or dequeue assertion fails, the mbuf is also not freed.
   This only affects test failure paths, but a leaked named mempool can make later runs in the same process fail at creation.
   Consider a single cleanup label that frees the port and mempool, with explicit checks instead of bare `TEST_ASSERT_*` after the allocations.

Review-Result: CLEAN


More information about the test-report mailing list