[PATCH v1] net/mlx5: fix probe optimization race condition

Stephen Hemminger stephen at networkplumber.org
Thu Aug 28 06:40:44 CEST 2025


On Thu, 28 Aug 2025 06:21:34 +0300
Rongwei Liu <rongweil at nvidia.com> wrote:

> With dedicated RDMA link monitor, there are two threads
> which can update the IB device port information.
> 
> Add a new flag to avoid the race condition. Update should
> go through RDMA link monitor once ready.
> 
> Fixes: 51fb5c40c826 ("net/mlx5: optimize device probing")
> Cc: rongweil at nvidia.com
> Cc: stable at dpdk.org
> Signed-off-by: Rongwei Liu <rongweil at nvidia.com>
> Acked-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>
> ---

If variable is modified (with out locking) on two threads it
needs to atomic or volatile.


More information about the stable mailing list