[PATCH] net/mlx5: fix rxq/txq stats memory access sync

Raslan Darawsheh rasland at nvidia.com
Tue Apr 26 11:51:01 CEST 2022


Hi,
> -----Original Message-----
> From: Raja Zidane <rzidane at nvidia.com>
> Sent: Wednesday, April 20, 2022 6:32 PM
> To: dev at dpdk.org
> Cc: Matan Azrad <matan at nvidia.com>; Slava Ovsiienko
> <viacheslavo at nvidia.com>; stable at dpdk.org
> Subject: [PATCH] net/mlx5: fix rxq/txq stats memory access sync
> 
> Queue statistics are being continuously updated in Rx/Tx burst
> routines while handling traffic. In addition to that, statistics
> can be reset (written with zeroes) on statistics reset in other
> threads, causing a race condition, which in turn could result in
> wrong stats.
> 
> The patch provides an approach with reference values, allowing
> the actual counters to be writable within Rx/Tx burst threads
> only, and updating reference values on stats reset.
> 
> Fixes: 87011737b715 ("mlx5: add software counters")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Raja Zidane <rzidane at nvidia.com>
> Acked-by: Slava Ovsiienko <viacheslavo at nvidia.com>
> ---

Patch applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh



More information about the dev mailing list