|SUCCESS| sched: fix subport free on RED/PIE config failure

dpdklab at iol.unh.edu dpdklab at iol.unh.edu
Wed Nov 25 07:07:20 CET 2026


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

_AI Code Review_

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

No issues found that rise to Warning or Error.

Info:

- In `app/test/test_sched.c`, if one of the `TEST_ASSERT_FAIL()` checks trips, the test returns without freeing `port`.
  - This happens when `rte_sched_subport_config()` unexpectedly succeeds.
  - It is test-only and only matters on a failing run, so it is minor.
  - Freeing `port` before failing would keep the test leak-free under ASAN.

  ```c
  	err = rte_sched_subport_config(port, SUBPORT, &sp, 0);
  	TEST_ASSERT_FAIL(err, "Invalid RED configuration accepted\n");
  	port = NULL;
  ```

Review-Result: CLEAN


More information about the test-report mailing list