[PATCH] net/mlx5: fix TxQ failure when inlining is impossible

Raslan Darawsheh rasland at nvidia.com
Tue Apr 12 10:09:12 CEST 2022


Hi,
> -----Original Message-----
> From: Dmitry Kozlyuk <dkozlyuk at nvidia.com>
> Sent: Thursday, March 31, 2022 5:39 PM
> To: dev at dpdk.org
> Cc: stable at dpdk.org; Slava Ovsiienko <viacheslavo at nvidia.com>; Matan
> Azrad <matan at nvidia.com>
> Subject: [PATCH] net/mlx5: fix TxQ failure when inlining is impossible
> 
> When txq_inline_max is too large and an mbuf is multi-segment it may be
> impossible to inline data and build a valid WQE, because WQE length would
> be larger then HW can represent.
> It is impossible to detect misconfiguration at startup, because the condition
> depends on the mbuf composition.
> The check on the data path to prevent the error treated the length limit as
> expressed in 64B units, while the calculated length and limit are in 16B units.
> Fix the condition to avoid subsequent TxQ failure and recovery.
> 
> Fixes: 18a1c20044c0 ("net/mlx5: implement Tx burst template")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Dmitry Kozlyuk <dkozlyuk at nvidia.com>
> Acked-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh



More information about the stable mailing list