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 <getel...@nvidia.com>
Acked-by: Dariusz Sosnowski <dsosnow...@nvidia.com>

Patch applied to next-net-mlx,

Kindest regards
Raslan Darawsheh

Reply via email to