|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:49:15 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 1/3 is not listed; no findings there.

**[PATCH v6 2/3] dts: add pvp multi paths vhost performance testsuite**

**Error**

1. The generated packet is 4 bytes larger than the configured frame size, because the payload length ignores the Ethernet FCS:
   ```
   / Raw(load="x" * (frame_size - 14 - 20))
   ```
   - Scapy builds the packet without FCS, so the frame on the wire is `frame_size + 4` bytes. A configured 64-byte frame actually goes out as 68 bytes.
   - With the default `frame_size=1518` from `PerfSuiteConfig` (patch 1), the IP packet is 1504 bytes. That exceeds the default 1500 MTU, so those packets are oversized and may be dropped. This is an MTU vs. frame-length confusion.
   - Fix: subtract `RTE_ETHER_CRC_LEN` (4) as well, i.e. `frame_size - 14 - 20 - 4`.
   - Also reject `frame_size` values smaller than the header sizes instead of silently producing an empty payload.

**Warning**

1. `test_perf_vhost_single_core_virtio_nonmergeable` exercises the vectorized path, not the plain non-mergeable path:
   ```
   ring_format=0,
   buffers=0,
   in_order=0,
   vectorized=1,
   ```
   - Its virtio device arguments are identical to `test_perf_vhost_single_core_virtio_vectorized`, so the scalar split-ring non-mergeable path is never tested.
   - The docstring ("Set TestPMD virtio parameters: vectorized=1.") repeats the same copy-paste.
   - Fix: use `vectorized=0` and update the docstring.

**Info**

1. The `expected_mpps` check runs only after both TestPmd instances are already started:
   ```
   verify(expected_mpps > 0, "Invalid expected mpps, must be greater than 0.")
   ```
   Validate the configuration before launching testpmd, preferably once in `set_up_suite`.

2. `_transmit`, `_create_and_transmit` and `_produce_stats_table` are almost entirely duplicated in patch 3. Consider moving them into a shared helper, alongside `PerfSuiteConfig`.

**[PATCH v6 3/3] dts: add pvp multi paths virtio performance testsuite**

**Error**

1. This suite has the same missing-FCS bug in the frame size calculation:
   ```
   / Raw(load="x" * (frame_size - 14 - 20))
   ```
   Packets are 4 bytes larger than configured, and the default 1518 case exceeds a 1500 MTU. Subtract the 4-byte CRC.

**Warning**

1. `test_perf_vhost_single_core_virtio_nonmergeable` again passes `vectorized=1`, so it duplicates the vectorized test instead of covering the scalar non-mergeable path:
   ```
   ring_format=0, buffers=0, in_order=0, vectorized=1, extra_args=extra_args
   ```
   Use `vectorized=0` and fix the docstring.

2. The `expected_mpps` check uses a bare `assert`, which is stripped under `python -O`; patch 2 uses `verify()` for the same check:
   ```
   assert expected_mpps > 0, "Invalid expected mpps, must be greater than 0."
   ```
   Use `verify()`, or validate the config up front, for consistent test-failure reporting.

**Info**

1. `test_perf_vhost_single_core_virtio11_vectorized` passes `queues=2`, but this is not documented and differs from the vhost suite:
   ```
   ring_format=1, buffers=0, in_order=1, vectorized=1, extra_args=extra_args, queues=2
   ```
   - The docstring does not mention two queues, and the same test in patch 2 uses one queue.
   - testpmd's `rx_queues`/`tx_queues` are not raised to match, so the second virtio queue appears unused.
   - Either drop `queues=2` or configure the queues and document why this case differs.

2. All test methods in this virtio suite are named `test_perf_vhost_single_core_*`, copied from the vhost suite. Renaming them to `test_perf_virtio_single_core_*` would avoid confusion in results and JSON output, since `get_current_test_case_name()` is used there.

Review-Result: ERROR


More information about the test-report mailing list