[PATCH v3] drivers: fix error CQE handling for 128 bytes CQE

Raslan Darawsheh rasland at nvidia.com
Wed Nov 13 14:34:52 CET 2024


Hi,

From: Alexander Kozyrev <akozyrev at nvidia.com>
Sent: Monday, October 28, 2024 7:17 PM
To: dev at dpdk.org
Cc: stable at dpdk.org; Raslan Darawsheh; Slava Ovsiienko; Matan Azrad; Dariusz Sosnowski; Bing Zhao; Suanming Mou
Subject: [PATCH v3] drivers: fix error CQE handling for 128 bytes CQE

The completion queue element size can be independently configured
to report either 64 or 128 bytes CQEs by programming cqe_sz parameter
at CQ creation. This parameter depends on the cache line size and
affects both regular CQEs and error CQEs. But the error handling
assumes that an error CQE is 64 bytes and doesn't take the padding
into consideration on platforms with 128-byte cache lines.
Fix the error CQE size in all error handling routines in mlx5.

Fixes: 957e45fb7b ("net/mlx5: handle Tx completion with error")
Cc: stable at dpdk.org

Signed-off-by: Alexander Kozyrev <akozyrev 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