|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:47:09 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
Review of series: dts pvp multi paths vhost/virtio performance testsuites (v6)
Patch 2/3: dts: add pvp multi paths vhost performance testsuite
==============================================================
**Error: packet length does not account for the 4-byte FCS, so frame_size=1518 exceeds the standard MTU**
```
/ Raw(load="x" * (frame_size - 14 - 20))
```
- The built packet is `frame_size` bytes without CRC, so on the wire it is `frame_size + 4`.
- With the default `frame_size=1518` from `PerfSuiteConfig`, the IP datagram is 1504 bytes. That exceeds a 1500-byte MTU, and the SUT ports will drop or fail to forward these packets. Every other size is also tested 4 bytes larger than reported.
- Fix: subtract the FCS as well, e.g. `Raw(load="x" * (frame_size - 14 - 20 - 4))`, or build to `frame_size - 4` and document that `frame_size` includes CRC.
**Warning: test_perf_vhost_single_core_virtio_nonmergeable does not test the non-mergeable path**
```
self._create_and_transmit(
ring_format=0,
buffers=0,
in_order=0,
vectorized=1,
extra_args=extra_args,
)
```
- These are the same virtio parameters as `test_perf_vhost_single_core_virtio_vectorized`.
- The split-ring, non-mergeable, non-vectorized path is never exercised, and the docstring ("Set TestPMD virtio parameters: vectorized=1") repeats the error.
- Fix: use `vectorized=0` and correct the docstring.
**Info: the expected_mpps check runs too late**
```
verify(expected_mpps > 0, "Invalid expected mpps, must be greater than 0.")
```
- This runs only after both testpmd instances are started for each parameter set.
- Validating the parameters once in `set_up_suite` (or via a pydantic constraint on `PerfTestParameters.expected_mpps`) would fail fast.
- Patch 3/3 uses `assert` for the same check, so the two suites are inconsistent.
**Info: typo in all test docstrings**
"Transmit from the traffic generator's ports 0 and 1 at above the expect." is garbled in every test docstring.
Patch 3/3: dts: add pvp multi paths virtio performance testsuite
================================================================
**Error: same missing FCS accounting as patch 2/3**
```
/ Raw(load="x" * (frame_size - 14 - 20))
```
- With the default 1518-byte frame, the IP datagram is 1504 bytes, which exceeds a 1500-byte MTU.
- Subtract the 4-byte CRC as in patch 2/3.
**Warning: test_perf_vhost_single_core_virtio_nonmergeable is a duplicate of the vectorized test**
```
self._create_and_transmit(
ring_format=0, buffers=0, in_order=0, vectorized=1, extra_args=extra_args
)
```
- These are the same virtio parameters as `test_perf_vhost_single_core_virtio_vectorized`, so the non-vectorized non-mergeable split-ring path is not tested.
- This variant also drops `"tx_offloads": 0` compared to patch 2/3's version.
- Fix: use `vectorized=0`, and align `extra_args` with the vhost suite.
**Warning: queues=2 likely leaves the second queue unused**
```
ring_format=1, buffers=0, in_order=1, vectorized=1, extra_args=extra_args, queues=2
```
- `queues=2` is passed to both vdevs, but neither `vhost_params` nor `virtio_params` sets `rx_queues`/`tx_queues` to match. For i40e, `default_args` explicitly forces `rx_queues = 1` and `tx_queues = 1`.
- As a result, only one queue is used and the second vring is left idle. This makes this test case inconsistent with the others for no stated reason.
- Fix: either drop `queues=2` or set testpmd rxq/txq accordingly.
**Info: assert used for config validation**
```
assert expected_mpps > 0, "Invalid expected mpps, must be greater than 0."
```
- This is disabled under `python -O` and is inconsistent with patch 2/3, which uses `verify()`.
- Prefer validating in `set_up_suite` or in the config model.
Review-Result: ERROR
More information about the test-report
mailing list