|SUCCESS| net/mlx5: fix Tx completion index wrap

dpdklab at iol.unh.edu dpdklab at iol.unh.edu
Tue Nov 17 11:46:40 CET 2026


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

_AI Code Review_

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

Info

1. Possible padding hole in a hot-path structure.
   - The patch places two 32-bit fields directly after a 16-bit field in the cache-aligned `struct mlx5_txq_data`:
     ```
     uint16_t cqe_s; /* Number of CQ elements. */
     uint32_t cq_ci; /* Consumer index for completion queue (doorbell takes low 24 bits). */
     uint32_t cq_pi; /* Production index for completion queue. */
     uint16_t cqe_m; /* Mask for CQ indices. */
     ```
   - Depending on the offset of `cqe_s`, this can add 2 bytes of padding before `cq_ci` and after `cqe_m`.
   - It can also shift later fields across a cache-line boundary in the Tx datapath structure.
   - Suggest checking the layout with `pahole`. Grouping the two `uint32_t` fields with the other 32-bit or wider members would avoid holes.

Review-Result: CLEAN


More information about the test-report mailing list