[PATCH] net/mlx5: fix external Rx and Tx queues access
Raslan Darawsheh
rasland at nvidia.com
Mon Aug 18 08:32:08 CEST 2025
Hi,
On 31/07/2025 9:08 AM, Gregory Etelson wrote:
> mlx5_ext_rxq_get() and mlx5_ext_txq_get() functions did not return
> NULL value if query index was not referencing external queue.
>
> As a result, calling functions did not expect the NULL on return.
>
> External Rx queue:
>
> - In mlx5_ext_rxq_get() remove assert and return NULL if a queue index
> does not point to a valid external queue.
>
> - In mlx5_ext_rxq_verify() validate that probed queue index references
> a valid extern queue.
>
> External Tx queue:
>
> - In mlx5_ext_txq_get() remove assert and return NULL if a queue index
> does not point to a valid external queue.
>
> - In mlx5_ext_txq_verify() validate that probed queue index references
> a valid extern queue.
>
> Fixes: 311b17e669ab ("net/mlx5: support queue/RSS actions for external Rx queue")
>
> 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