[dpdk-stable] [PATCH 1/2] net/mlx5: fix age action pool protection

Raslan Darawsheh rasland at nvidia.com
Tue Nov 2 09:09:19 CET 2021


Hi,

> -----Original Message-----
> From: Jiawei(Jonny) Wang <jiaweiw at nvidia.com>
> Sent: Monday, November 1, 2021 8:31 AM
> To: Matan Azrad <matan at nvidia.com>; Ori Kam <orika at nvidia.com>; Slava
> Ovsiienko <viacheslavo at nvidia.com>; NBU-Contact-Thomas Monjalon
> <thomas at monjalon.net>; Suanming Mou <suanmingm at nvidia.com>
> Cc: dev at dpdk.org; Raslan Darawsheh <rasland at nvidia.com>;
> stable at dpdk.org
> Subject: [PATCH 1/2] net/mlx5: fix age action pool protection
> 
> The age action with flows creation could be supported on the multiple
> threads. The age pools were created to manage the age resources, if
> there is no room in the current pool then resize the age pool to the new
> pool size and free the old one.
> 
> There's a race condition while one thread resizes the age pool and the
> old pool resource be freed, and another thread query the age action
> value of the old pool so the queried value is invalid.
> 
> This patch uses the read-write lock to protect the pool resource while
> resizing and query.
> 
> Fixes: a5835d530f00 ("net/mlx5: optimize Rx queue match")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Jiawei Wang <jiaweiw at nvidia.com>
> Acked-by: Matan Azrad <matan at nvidia.com>

Series applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh


More information about the stable mailing list