Hi,

On 30/10/2025 11:11 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 <[email protected]>
Acked-by: Dariusz Sosnowski <[email protected]>
---
v2: fixed MinGW compiler warnings.
v3: fix return value.

Patch applied to next-net-mlx,

Kindest regards
Raslan Darawsheh

Reply via email to