|SUCCESS| [v4,8/8] dts: add Rx interrupt test suite
dpdklab at iol.unh.edu
dpdklab at iol.unh.edu
Wed Nov 18 09:57:29 CET 2026
Test-Label: ai-code-review
Test-Status: SUCCESS
https://dpdk.org/patch/173025
_AI Code Review_
=== Patch Review: series.patch (via Claude) ===
Review date: 2026-11-18
**Patch 2/8 (net/virtio-user: fix packet loss with unused queue pairs)**
Info: on the disable path, a `TUNSETQUEUE` failure leaves the queue pair in an inconsistent state.
```c
if (pair_idx > 0 && vhost_tap_set_queue(tapfd, false) < 0)
return -1;
dev->qp_enabled[pair_idx] = false;
```
- By this point the vhost backend has already been unset with `vhost_kernel_set_backend(vhostfd, -1)`.
- An error return here leaves `qp_enabled[pair_idx]` true while the pair has no backend.
- Consider clearing `qp_enabled` before returning, or logging the failure and continuing, since the backend is already gone.
**Patch 4/8 (test/virtio_user: add unit test of unused queue pairs)**
Info: the setup error path can leak the vdev.
```c
if (rte_vdev_init(VDEV_NAME, "path=/dev/vhost-net,iface=" TAP_NAME ",queues=2") < 0 ||
rte_eth_dev_get_port_by_name(VDEV_NAME, &port_id) != 0) {
```
- If `rte_vdev_init()` succeeds but `rte_eth_dev_get_port_by_name()` fails, `port_id` stays `RTE_MAX_ETHPORTS`.
- `test_virtio_user_cleanup()` then skips `rte_vdev_uninit(VDEV_NAME)`, so the device stays created.
- This only affects the test's skip path.
**Patch 5/8 (test/virtio_user: add unit test of Rx interrupts)**
Info: a failing assertion inside the loop in `rx_intr_wakes()` leaves state behind.
- For example, `TEST_ASSERT(ret == 1, "no Rx interrupt within %d ms", WAIT_MS);` returns before the matching cleanup.
- The queue's interrupt stays registered with `RTE_EPOLL_PER_THREAD`, because the `RTE_INTR_EVENT_DEL` call is skipped.
- The Rx interrupt also stays enabled.
- The next round, or a later test case on the same thread, then starts with a stale epoll registration.
- Consider a cleanup label that disables the interrupt and deletes the registration before returning the failure.
**Patch 6/8 (app/testpmd: add Rx queue interrupts option)**
Info: return values in the sleep path are ignored.
```c
if (on)
rte_eth_dev_rx_intr_enable(fs->rx_port, fs->rx_queue);
```
- If a port does not support Rx queue interrupts, enable fails silently.
- The idle lcore then sleeps the full 10 ms on every idle iteration, with no wake-up source.
- The registration failure is already logged once, so this is acceptable. A one-time warning on enable failure would make the degraded mode clearer.
Review-Result: CLEAN
More information about the test-report
mailing list