|SUCCESS| net/mlx5: fix mbuf corruption in vectorized MPRQ Rx
dpdklab at iol.unh.edu
dpdklab at iol.unh.edu
Thu Nov 26 15:48:05 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**
The session-length computation duplicates logic that the commit message says lives inside `rxq_cq_decompress_v()`:
```
+ mcqe_n = rxq->cqe_comp_layout ?
+ (MLX5_CQE_NUM_MINIS(tcqe->op_own) + 1U) :
+ rte_be_to_cpu_32(tcqe->byte_cnt);
```
If the two copies drift apart, for example when a new compression layout is added, this guard would silently stop matching what the unzip routine writes. That would reintroduce the overrun this patch fixes.
Consider factoring the calculation into a small inline helper, such as `mlx5_cqe_session_len(rxq, cqe)`. Both the guard here and `rxq_cq_decompress_v()` could then call it.
Review-Result: CLEAN
More information about the test-report
mailing list