|WARNING| [v6, 3/3] dts: add pvp multi paths virtio performance testsuite

dpdklab at iol.unh.edu dpdklab at iol.unh.edu
Thu Nov 12 22:30:51 CET 2026


Test-Label: ai-code-review
Test-Status: WARNING
https://dpdk.org/patch/172860

_AI Code Review_

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

**Patch 2/3: dts: add pvp multi paths vhost performance testsuite**

Warning: the largest default frame size produces an oversized frame.
```
/ Raw(load="x" * (frame_size - 14 - 20))
```
- This builds an L2 frame of exactly `frame_size` bytes before the FCS. The NIC then adds a 4-byte CRC on the wire.
- With the 1518 default added in patch 1/3 (`PerfTestParameters(frame_size=1518, ...)`), the IP datagram is 1504 bytes. That exceeds the standard 1500 MTU, so the SUT ports will drop or count these frames as errors.
- The same 4-byte offset skews every other frame size: a "64B" frame is 68B on the wire.
- Fix: subtract the CRC length as well, i.e. `frame_size - 14 - 20 - 4`.

Info: the expected-MPPS check runs too late.
```
verify(expected_mpps > 0, "Invalid expected mpps, must be greater than 0.")
```
- This config check runs inside the `with` block, after both testpmd instances have been launched.
- Validate it before starting testpmd, or in a pydantic validator on `PerfTestParameters`.
- Patch 3/3 uses `assert` for the same check. Pick one approach for both suites.

Info: two docstrings are wrong.
- The steps line "Transmit from the traffic generator's ports 0 and 1 at above the expect." is garbled and is repeated in every test docstring.
- `test_perf_vhost_single_core_virtio_nonmergeable` says "Set TestPMD virtio parameters: vectorized=1." That is the same description as `test_perf_vhost_single_core_virtio_vectorized`. It does not describe a non-mergeable path, so either the docstring or the parameters are wrong.

**Patch 3/3: dts: add pvp multi paths virtio performance testsuite**

Warning: the same frame-size bug is copied here.
```
/ Raw(load="x" * (frame_size - 14 - 20))
```
The 1518B default yields a 1504-byte IP datagram plus FCS, which exceeds the standard MTU. Subtract the 4-byte CRC here too.

Warning: the test case names and docstrings are copied unchanged from the vhost suite.
```
def test_perf_vhost_single_core_virtio11_mergeable(self) -> None:
```
- This suite measures virtio single-core performance, but every test is named `test_perf_vhost_single_core_*`.
- The docstrings say "Forward on TestPMD's interfaces 0 and 1 with 1 core", but this suite gives vhost two cores.
- Because `_produce_stats_table` uses `get_current_test_case_name()` for the printed table, results from the two suites are indistinguishable.
- Fix: rename the tests to `test_perf_virtio_single_core_*` and correct the docstrings.

Info: the vhost and virtio queue counts disagree in the virtio11 vectorized test.
```
ring_format=1, buffers=0, in_order=1, vectorized=1, extra_args=extra_args, queues=2
```
- `queues=2` is applied to both vdevs, but `rx_queues`/`tx_queues` are not raised for testpmd (and are forced to 1 on i40e). The second queue is therefore never polled.
- No other test passes `queues`. If two queues are intended, set `rx_queues`/`tx_queues` accordingly; otherwise drop the parameter.

Info: `Params` is imported from a different module than in patch 2/3.
```
from api.params.eal import Params, VirtualDevice
```
Patch 2/3 imports it from `api.testpmd.config`. Use one consistent import location in both suites.

Review-Result: WARNING


More information about the test-report mailing list