|SUCCESS| [v1,2/2] examples/ptpclient: support vector Rx paths

dpdklab at iol.unh.edu dpdklab at iol.unh.edu
Thu Nov 19 07:01:30 CET 2026


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

_AI Code Review_

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

**Patch 2/2: examples/ptpclient: support vector Rx paths**

Info: pre-existing bug, not introduced by this patch. The `lcore_main()` port loop uses `portid` both as the array index and as the port ID:

```
for (portid = 0; portid < ptp_enabled_port_nb; portid++) {
	portid = ptp_enabled_ports[portid];
```

After the assignment, `portid++` advances from the port ID, not from the index. With enabled ports {2, 3}, the first iteration polls port 2. The increment then makes `portid` 3, which fails `3 < 2`, so port 3 is never polled. A separate fix should use a distinct index variable:

```
for (idx = 0; idx < ptp_enabled_port_nb; idx++) {
	portid = ptp_enabled_ports[idx];
```

Review-Result: CLEAN


More information about the test-report mailing list