> -----Original Message-----
> From: Bing Zhao <[email protected]>
> Sent: Wednesday, July 9, 2025 7:00 AM
> To: Slava Ovsiienko <[email protected]>; [email protected]; Raslan
> Darawsheh <[email protected]>
> Cc: Ori Kam <[email protected]>; Dariusz Sosnowski
> <[email protected]>; Suanming Mou <[email protected]>;
> Matan Azrad <[email protected]>; NBU-Contact-Thomas Monjalon
> (EXTERNAL) <[email protected]>
> Subject: [PATCH] net/mlx5: fix the queue length checking
>
> In the new consecutive memory mode of Tx queues allocation, the needed
> WQ length is calculated via txq_calc_wqebb_cnt(). This function is used both
> in Verbs and Devx modes, but in the Devx queue creation, the actual length is
> re-calculated / adjusted for the Devx API. The queue parameters
> 'max_inline_data' and 'inlen_send' are used separately for the length
> calculation for different modes and the counts calculated are different as a
> result.
>
> So passing the mode as a bool input to adjust the calculation in different
> modes will solve the mismatch. In the meanwhile, since the memory and MR
> are allocated successfully before creating a SQ / CQ.
> So the error is not critical and a warning message is enough, the saved length
> can be used to create the queue.
>
> Fixes: d94177339289 ("net/mlx5: use consecutive memory for Tx queue
> creation")
>
> Signed-off-by: Bing Zhao <[email protected]>
Acked-by: Viacheslav Ovsiienko <[email protected]>