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

Raslan Darawsheh rasland at nvidia.com
Tue Sep 2 10:03:50 CEST 2025


Hi,


On 29/08/2025 8:35 AM, Rongwei Liu 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.
> 
> Current logic is:
> 1. Update all port information in probing thread.
> 2. Probe thread initiates the dedicated rdma monitor thread.
>     Once ready, port information update will be handled by this thread.
> 3. Next probing won't trigger PMD port information update.
> 
> No lock is required.
> 
> Fixes: 51fb5c40c826 ("common/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>

Patch applied to next-net-mlx,

Kindest regards
Raslan Darawsheh



More information about the dev mailing list