|WARNING| [v5, 2/2] dts: add pvp multi paths virtio performance testsuite

dpdklab at iol.unh.edu dpdklab at iol.unh.edu
Tue Nov 10 23:15:59 CET 2026


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

_AI Code Review_

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

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

**Error**

1. Generated frames are 4 bytes larger than the configured frame size. The largest default size (1518) then exceeds the standard MTU.

   ```
   / Raw(load="x" * (frame_size - 14 - 20))
   ```

   The Scapy packet is already `frame_size` bytes without the FCS, and the generator adds a 4-byte CRC on the wire.
   - The configured "64-byte" test therefore actually sends 68-byte frames, so results are not comparable to standard frame-size baselines.
   - With the default `frame_size=1518` entry, the IP total length is 1504. That exceeds the default MTU of 1500, so the SUT NIC will drop or reject these frames and the test measures nothing.

   Subtract the CRC length as well, e.g. `frame_size - 14 - 20 - 4`, or use named constants for the header and CRC lengths.

**Warning**

2. `test_perf_vhost_single_core_virtio_nonmergeable` is configured identically to `test_perf_vhost_single_core_virtio_vectorized` on the virtio datapath. The only difference is `extra_args`. As a result, the non-mergeable, non-vectorized split-ring path is never tested.

   ```
   ring_format=0,
   buffers=0,
   in_order=0,
   vectorized=1,
   ```

   The docstring also says `vectorized=1`, which looks like a copy-paste from the vectorized case. Use `vectorized=0` for the non-mergeable case.

3. `PerfSuiteConfig.passing` is declared as `float`, but it is assigned and tested as a bool.

   ```
   passing: float | None = None
   ...
   params.passing = float(performance_delta) >= -self.config.delta_tolerance
   ```

   Assignment validation is not enabled, so this only works by accident. It is inconsistent with `strict=True` and with the later `params.passing is True` check. Declare it as `bool | None`.

**Info**

4. The test cases print results with `print()` rather than the DTS logger. That output will not appear in the DTS log files. Consider `self._logger.info(...)`.

5. Every step list contains "at above the expect.", which is a truncated or garbled sentence.

6. `PerfSuiteConfig` is a generic performance-suite model, yet it is placed in `api/testpmd/config.py`. It may fit better alongside other test-suite config types, e.g. in `api/test_suite.py`.

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

**Error**

1. The same frame-size bug as in patch 1 is present here: frames are 4 bytes too large, and the default 1518 entry exceeds MTU 1500.

   ```
   / Raw(load="x" * (frame_size - 14 - 20))
   ```

**Warning**

2. As in patch 1, `test_perf_vhost_single_core_virtio_nonmergeable` passes `vectorized=1`, which duplicates the vectorized test case.

   ```
   ring_format=0, buffers=0, in_order=0, vectorized=1, extra_args=extra_args
   ```

3. Input validation uses a bare `assert`, which is removed under `python -O`. Patch 1 uses `verify()` for the same check.

   ```
   assert expected_mpps > 0, "Invalid expected mpps, must be greater than 0."
   ```

   Use `verify()` for consistency and so the failure is reported as a test failure.

**Info**

4. Several names and docstrings are copy-pasted from the vhost suite.
   - The Config docstring says `"Test configuration for pvp_multi_paths_vhost_single_core_perf test suite."`.
   - Every test case is named `test_perf_vhost_single_core_*`.

   In the virtio suite these names are misleading in reports and JSON output.

5. The `dts/api/test_suite.py` docstring change, which removes the "cryptodev" mention, is unrelated to adding this test suite. Consider sending it as a separate patch.

6. The large blocks of test code duplicated between the two suites (`_transmit`, `_create_and_transmit`, `_produce_stats_table`) could be factored into a shared helper.

Review-Result: ERROR


More information about the test-report mailing list