DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Cheryl Bansal <cheryl.bansal@altera.com>
Cc: bruce.richardson@intel.com, david.marchand@redhat.com,
	arnon@qwilt.com, dev@dpdk.org, stable@dpdk.org
Subject: Re: [PATCH] eal: set errno when shared config init fails
Date: Mon, 30 Nov 2026 09:39:46 -0800	[thread overview]
Message-ID: <20261130093946.7b902e3c@phoenix.local> (raw)
In-Reply-To: <20261130150902.2562849-1-cheryl.bansal@altera.com>

On Mon, 30 Nov 2026 20:39:02 +0530
Cheryl Bansal <cheryl.bansal@altera.com> wrote:

> rte_eal_init() is documented to return -1 with rte_errno set.
> rte_config_init() returns -1 without setting it, so a second primary
> process fails the config lock and the caller observes rte_errno 0.
> 
> Set EAGAIN at that failure. It is the code returned when the lock is
> held, and rte_eal_init() already documents it as a resource that can
> be retried. The same assignment covers the other config init failures,
> which matches the one code used for each later init stage.
> 
> Bugzilla ID: 2156
> Fixes: 4e8854ae89fa ("eal: do not panic on shared memory init")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Cheryl Bansal <cheryl.bansal@altera.com>
> ---

I would use EBUSY since caller probably can't retry with any more succes

      reply	other threads:[~2026-11-30 17:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 15:09 [PATCH] eal: set errno when shared config init fails Cheryl Bansal
2026-11-30 17:39 ` Stephen Hemminger [this message]

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=20261130093946.7b902e3c@phoenix.local \
    --to=stephen@networkplumber.org \
    --cc=arnon@qwilt.com \
    --cc=bruce.richardson@intel.com \
    --cc=cheryl.bansal@altera.com \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=stable@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