[PATCH net v3 0/2] net/mlx5e: Prevent stale XSK buffer release on refill retries
Jerome Tollet <[email protected]>
| Newsgroups | org.kernel.vger.bpf,org.kernel.vger.linux-kernel,org.kernel.vger.linux-rdma,org.kernel.vger.netdev |
|---|---|
| Message-ID | <[email protected]> |
Prevent duplicate XSK buffer release when a deferred RX refill fails and the same WQE is retried. Patch 1 fixes legacy cyclic RQ. It is unchanged from v2 and retains Dragos' Reviewed-by tag. Patch 2 fixes the analogous striding-RQ MPWQE path pointed out by the Sashiko automated review. Targeted fault injection forced three consecutive allocation failures for one MPWQE. Stock freed the same 16 XSK buffer pointers three times; the fix freed each pointer only once, made subsequent releases no-ops, and preserved the successful allocation path's bitmap reset. Changes in v3: - Turn the submission into a two-patch series. - Add the striding-RQ MPWQE fix and its dedicated Fixes tag. - Rebase onto net/main at 4e15e89faac9. v2: https://lore.kernel.org/netdev/[email protected]/ Jerome Tollet (2): net/mlx5e: Prevent stale XSK buffer release on refill retry net/mlx5e: Prevent stale XSK buffer release on MPWQE refill retry drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) -- 2.55.0