From: Stephen Hemminger <stephen@networkplumber.org>
To: Rongwei Liu <rongweil@nvidia.com>
Cc: <dev@dpdk.org>, <matan@nvidia.com>, <viacheslavo@nvidia.com>,
<orika@nvidia.com>, <suanmingm@nvidia.com>, <thomas@monjalon.net>,
<stable@dpdk.org>, Dariusz Sosnowski <dsosnowski@nvidia.com>,
Bing Zhao <bingz@nvidia.com>
Subject: Re: [PATCH v1] net/mlx5: fix probe optimization race condition
Date: Wed, 27 Aug 2025 21:40:44 -0700 [thread overview]
Message-ID: <20250827214044.16f9baaa@hermes.local> (raw)
In-Reply-To: <20250828032134.167999-1-rongweil@nvidia.com>
On Thu, 28 Aug 2025 06:21:34 +0300
Rongwei Liu <rongweil@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@nvidia.com
> Cc: stable@dpdk.org
> Signed-off-by: Rongwei Liu <rongweil@nvidia.com>
> Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
> ---
If variable is modified (with out locking) on two threads it
needs to atomic or volatile.
next prev parent reply other threads:[~2025-08-28 4:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-28 3:21 [PATCH v1] net/mlx5: fix probe optimization race condition Rongwei Liu
2025-08-28 4:40 ` Stephen Hemminger [this message]
2025-08-28 4:49 ` rongwei liu
2025-08-28 13:37 ` Thomas Monjalon
2025-08-29 5:35 ` [PATCH v2] " Rongwei Liu
2025-09-02 8:03 ` Raslan Darawsheh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250827214044.16f9baaa@hermes.local \
--to=stephen@networkplumber.org \
--cc=bingz@nvidia.com \
--cc=dev@dpdk.org \
--cc=dsosnowski@nvidia.com \
--cc=matan@nvidia.com \
--cc=orika@nvidia.com \
--cc=rongweil@nvidia.com \
--cc=stable@dpdk.org \
--cc=suanmingm@nvidia.com \
--cc=thomas@monjalon.net \
--cc=viacheslavo@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.