[PATCH v2] net/mlx5: fix miniCQEs number calculation

Slava Ovsiienko viacheslavo at nvidia.com
Tue Nov 12 15:49:04 CET 2024


> -----Original Message-----
> From: Alexander Kozyrev <akozyrev at nvidia.com>
> Sent: Monday, October 28, 2024 7:15 PM
> To: dev at dpdk.org
> Cc: stable at dpdk.org; Raslan Darawsheh <rasland at nvidia.com>; Slava
> Ovsiienko <viacheslavo at nvidia.com>; Matan Azrad <matan at nvidia.com>;
> Dariusz Sosnowski <dsosnowski at nvidia.com>; Bing Zhao
> <bingz at nvidia.com>; Suanming Mou <suanmingm at nvidia.com>
> Subject: [PATCH v2] net/mlx5: fix miniCQEs number calculation
> 
> Use the information from the CQE, not from the title packet, for getting the
> number of miniCQEs in the compressed CQEs array.
> This way we can avoid segfaults in the rxq_cq_decompress_v() in case of
> mbuf corruption (due to double mbuf free, for example).
> 
> Fixes: 6cb559d67b ("net/mlx5: add vectorized Rx/Tx burst for x86")
> 
> Signed-off-by: Alexander Kozyrev <akozyrev at nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>



More information about the stable mailing list