[PATCH] net/mlx5: fix storage handling of shared Rx queues
Raslan Darawsheh
rasland at nvidia.com
Mon Aug 18 08:32:47 CEST 2025
Hi,
On 31/07/2025 1:41 PM, Gregory Etelson wrote:
> The MLX5 PMD maintains 2 lists for Rx queues:
> - mlx5_priv::rxqsctrl - for non-shared and shared Rx queues
> - mlx5_dev_ctx_shared::shared_rxqs - for shared Rx queues only
>
> The PMD used the `rxqsctrl` as the primary list for Rx queues
> maintenance.
>
> The PMD wipes out port mlx5_priv object after an application closed
> the port.
>
> If PMD shared Rx queues between the transfer proxy port and
> representor ports and closed the transfer proxy port before
> representor, the representor port cannot iterate its shared Rx queues
> because Rx queues list head was wiped out.
>
> The patch separates Rx queue storage list according to the list type:
> - shared Rx queues are stored in the `shared_rxqs` only
> - non-shared Rx queues are stored in the `rxqsctrl` list only.
>
> Fixes: 6886b5f39d66 ("net/mlx5: fix hairpin queue release")
>
> Signed-off-by: Gregory Etelson <getelson at nvidia.com>
> Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
Patch applied to next-net-mlx,
Kindest regards
Raslan Darawsheh
More information about the dev
mailing list