|SUCCESS| [2/2] test/sched: check port rate byte clock limits
dpdklab at iol.unh.edu
dpdklab at iol.unh.edu
Fri Nov 20 12:40:11 CET 2026
Test-Label: ai-code-review
Test-Status: SUCCESS
https://dpdk.org/patch/173061
_AI Code Review_
=== Patch Review: series.patch (via Claude) ===
Review date: 2026-11-20
Patch 1/2: sched: fix byte clock computation for extreme port rates
Info: The new condition is split across lines even though it fits on one line. The continuation is also indented with tab plus spaces rather than the double-tab continuation used in DPDK.
```c
if (cycles_per_byte == 0 ||
cycles_per_byte > UINT32_MAX) {
```
Suggested: `if (cycles_per_byte == 0 || cycles_per_byte > UINT32_MAX) {`
Patch 2/2: test/sched: check port rate byte clock limits
Info: If either rejection assertion fails, the test leaks the port that was unexpectedly created. `TEST_ASSERT_NULL()` returns immediately, so the leak is limited to the test process on an already-failing run.
```c
port_param.rate = UINT64_MAX;
port = rte_sched_port_config(&port_param);
TEST_ASSERT_NULL(port, "Port config accepted rate too high\n");
```
To keep failing runs clean, free `port` before asserting, for example:
```c
if (port != NULL)
rte_sched_port_free(port);
```
Info: `TEST_ASSERT*` already appends a newline to the message, so the trailing `\n` in the new messages produces blank lines in the log.
Review-Result: CLEAN
More information about the test-report
mailing list