From: fengchengwen <fengchengwen@huawei.com>
To: David Marchand <david.marchand@redhat.com>, <dev@dpdk.org>
Subject: Re: [PATCH v2] dev: fix hotplug notification to secondary
Date: Wed, 8 Jul 2026 08:38:02 +0800 [thread overview]
Message-ID: <149a8bf9-84f9-4ad6-8a08-fe4eec8dde0f@huawei.com> (raw)
In-Reply-To: <20260707115551.967336-1-david.marchand@redhat.com>
Reviewed-by: Chengwen Feng <fengchengwen@huawei.com>
On 7/7/2026 7:55 PM, David Marchand wrote:
> There was a logical error when making some last minute change.
> Fix the no_shconf evaluation.
>
> Bugzilla ID: 1963
> Fixes: 1a2e26d8701d ("dev: skip multi-process in hotplug")
>
> Signed-off-by: David Marchand <david.marchand@redhat.com>
> ---
> Changes since v1:
> - separated the unit test from the fix,
>
> ---
> lib/eal/common/eal_common_dev.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/lib/eal/common/eal_common_dev.c b/lib/eal/common/eal_common_dev.c
> index 9ed62a20e0..b43b0a4bb3 100644
> --- a/lib/eal/common/eal_common_dev.c
> +++ b/lib/eal/common/eal_common_dev.c
> @@ -269,7 +269,7 @@ rte_dev_probe(const char *devargs)
> {
> const struct internal_config *internal_conf =
> eal_get_internal_configuration();
> - bool do_mp = !!internal_conf->no_shconf;
> + bool do_mp = internal_conf->no_shconf == 0;
> struct eal_dev_mp_req req;
> struct rte_device *dev;
> int ret;
> @@ -428,7 +428,7 @@ rte_dev_remove(struct rte_device *dev)
> {
> const struct internal_config *internal_conf =
> eal_get_internal_configuration();
> - bool do_mp = !!internal_conf->no_shconf;
> + bool do_mp = internal_conf->no_shconf == 0;
> struct eal_dev_mp_req req;
> char *devargs;
> int ret;
next prev parent reply other threads:[~2026-07-08 0:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-06 14:55 [PATCH] dev: fix hotplug notification to secondary David Marchand
2026-07-07 11:41 ` David Marchand
2026-07-07 11:55 ` [PATCH v2] " David Marchand
2026-07-08 0:38 ` fengchengwen [this message]
2026-07-08 12:52 ` David Marchand
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=149a8bf9-84f9-4ad6-8a08-fe4eec8dde0f@huawei.com \
--to=fengchengwen@huawei.com \
--cc=david.marchand@redhat.com \
--cc=dev@dpdk.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox