|SUCCESS| net/mlx5: fix mbuf corruption in vectorized MPRQ Rx
dpdklab at iol.unh.edu
dpdklab at iol.unh.edu
Thu Nov 26 15:51:42 CET 2026
Test-Label: ai-code-review
Test-Status: SUCCESS
https://dpdk.org/patch/173208
_AI Code Review_
=== Patch Review: series.patch (via Claude) ===
Review date: 2026-11-26
**Info**
1. The new early return can stall the Rx queue permanently if a compressed session is larger than the elts ring can ever hold.
```c
if (unlikely(mcqe_n > rxq->elts_ci - rxq->rq_pi)) {
*no_cq = !rcvd_pkt;
return rcvd_pkt;
}
```
The session is left in the CQ until `elts_ci - rq_pi` grows to at least `mcqe_n`. That difference can never exceed the number of elts the queue replenishes. With a small descriptor count, a session longer than that would never be consumed, and the queue would stop receiving.
Suggested action: either state in the commit message why `mcqe_n` is always within the ring's replenish capacity, or clamp the comparison against the elts ring size. Another option is to fail queue setup when the descriptor count is below the maximum compression session length.
2. When the session does not fit and `rcvd_pkt` is 0, `*no_cq` is set to true even though a CQE is pending.
```c
*no_cq = !rcvd_pkt;
```
Callers use `no_cq` to decide that the CQ is empty. Reporting "no CQE" while the title CQE is still present hides the starvation condition from the caller.
Suggested action: add a short comment confirming this is intended, i.e. that the caller should simply stop polling this burst.
Review-Result: CLEAN
More information about the test-report
mailing list