|SUCCESS| [v2,2/2] net/mlx5: add helper to check Rx CQE

dpdklab at iol.unh.edu dpdklab at iol.unh.edu
Mon Nov 30 12:33:16 CET 2026


Test-Label: ai-code-review
Test-Status: SUCCESS
https://dpdk.org/patch/173410

_AI Code Review_

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

**Patch 2/2: net/mlx5: add helper to check Rx CQE**

Info: the helper takes the CQ size from two different places depending on the layout.

```c
	return rxq->cqe_comp_layout ?
	       check_cqe_iteration(cqe, rxq->cqe_n, ci) :
	       check_cqe(cqe, cqes_n, ci);
```

- The enhanced-layout branch ignores the caller-supplied `cqes_n` and reads `rxq->cqe_n` instead.
- The Doxygen says `cqes_n` is the "Size of completion queue" without noting that it applies only to the owner-bit check.

This keeps the original behaviour of both callers, so it is not a bug. However, a future caller could reasonably assume `cqes_n` is honoured in both modes. Consider one of these:

- State in the `@param cqes_n` text that it is used only for the legacy (owner bit) check.
- Derive both values from `rxq` inside the helper, if the burst path's cached `cqe_n` is not needed for performance.

Review-Result: CLEAN


More information about the test-report mailing list