DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Morten Brørup" <mb@smartsharesystems.com>
To: "Thomas Monjalon" <thomas@monjalon.net>,
	"Robert Sanford" <rsanford@akamai.com>,
	"Robert Sanford" <rsanford2@gmail.com>
Cc: <dev@dpdk.org>, <andrew.rybchenko@oktetlabs.ru>,
	<olivier.matz@6wind.com>, <stable@dpdk.org>,
	"David Marchand" <david.marchand@redhat.com>
Subject: RE: [PATCH v4 2/3] mempool: fix dump of unpopulated pool
Date: Thu, 19 Nov 2026 20:27:33 +0100	[thread overview]
Message-ID: <98CBD80474FA8B44BF855DF32C47DC35F65B17@smartserver.smartshare.dk> (raw)
In-Reply-To: <hJsCtzRYR1eG3PZiPV7p7Q@monjalon.net>

> From: Thomas Monjalon [mailto:thomas@monjalon.net]
> Sent: Thursday, 19 November 2026 06.47
> 
> 19/11/2026 15:18, Morten Brørup:
> > > From: Thomas Monjalon [mailto:thomas@monjalon.net]
> > > Sent: Thursday, 19 November 2026 06.08
> > >
> > > 12/11/2026 16:43, Robert Sanford:
> > > > +* **Added function to check if a mempool is created.**
> > > > +
> > > > +  Added the ``rte_mempool_is_created()`` function
> > > > +  to check whether the store of a mempool has been created.
> > > > +  ``rte_mempool_walk()`` callbacks can use it to skip mempools
> > > > +  that are not populated yet before querying the mempool driver.
> > >
> > > If usage is internal, why exposing this function publicly?
> >
> > It is also for public use:
> > If an application walks the list of mempools using the public
> function rte_mempool_walk(), we need a public function for the
> application's callback to determine if the mempool is created (i.e.
> driver callbacks are initialized). If the mempool is not created,
> accessing the mempool driver is now allowed.
> >
> > >
> > > [...]
> > > > +bool rte_mempool_is_created(const struct rte_mempool *mp);
> > >
> > > Any new API must enter in an experimental first.
> > > But here we may not need to expose it as an API?
> >
> > If it is marked as experimental, it cannot be used internally, and
> its internal user would need to implement similar functionality.
> > And since it is a simple function, we decided to skip the
> experimental stage.
> > The alternative was making it inline; but it is not a fast path
> function, I preferred not to.
> 
> Oh I forgot this constraint.
> 
> Please add this explanation in the commit log.
> 
> By the way I assume it is too late to add such a function in 26.11,
> and it is not a recent regression, so it can wait a little, right?

Agree.

-Morten

  reply	other threads:[~2026-11-19 19:27 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-03  1:11 [PATCH v1 0/3] mempool: fix races between list walk and create/free Robert Sanford
2026-11-03  1:11 ` [PATCH v1 1/3] mempool: fix race between list walk and free Robert Sanford
2026-11-03 13:54   ` Morten Brørup
2026-11-03  1:11 ` [PATCH v1 2/3] mempool: skip unpopulated pools in walk and dump Robert Sanford
2026-11-03 14:12   ` Morten Brørup
2026-11-03  1:11 ` [PATCH v1 3/3] test/mempool: add list walk race test Robert Sanford
2026-11-03 14:15   ` Morten Brørup
2026-11-03 17:35 ` [PATCH v2 0/3] mempool: fix races between list walk and create/free Robert Sanford
2026-11-03 17:35   ` [PATCH v2 1/3] mempool: fix race between list walk and free Robert Sanford
2026-11-03 17:35   ` [PATCH v2 2/3] mempool: fix dump of unpopulated pool Robert Sanford
2026-11-06  8:43     ` Morten Brørup
2026-11-06 18:43       ` Robert Sanford
2026-11-06 19:24         ` Morten Brørup
2026-11-03 17:35   ` [PATCH v2 3/3] test/mempool: add list walk race test Robert Sanford
2026-11-09 14:40   ` [PATCH v3 0/3] mempool: fix races between list walk and create/free Robert Sanford
2026-11-09 14:40     ` [PATCH v3 1/3] mempool: fix race between list walk and free Robert Sanford
2026-11-09 14:40     ` [PATCH v3 2/3] mempool: fix dump of unpopulated pool Robert Sanford
2026-11-09 14:40     ` [PATCH v3 3/3] test/mempool: add list walk race test Robert Sanford
2026-11-11 13:00       ` Morten Brørup
2026-11-12 15:43     ` [PATCH v4 0/3] mempool: fix races between list walk and create/free Robert Sanford
2026-11-12 15:43       ` [PATCH v4 1/3] mempool: fix race between list walk and free Robert Sanford
2026-11-12 15:43       ` [PATCH v4 2/3] mempool: fix dump of unpopulated pool Robert Sanford
2026-11-19 14:08         ` Thomas Monjalon
2026-11-19 14:18           ` Morten Brørup
2026-11-19 14:47             ` Thomas Monjalon
2026-11-19 19:27               ` Morten Brørup [this message]
2026-11-19 14:20           ` Morten Brørup
2026-11-12 15:43       ` [PATCH v4 3/3] test/mempool: add list walk race test Robert Sanford
2026-11-30 20:51       ` [PATCH v5 0/3] mempool: fix races between list walk and create/free Robert Sanford
2026-11-30 20:51         ` [PATCH v5 1/3] mempool: fix race between list walk and free Robert Sanford
2026-11-30 20:51         ` [PATCH v5 2/3] mempool: fix dump of unpopulated pool Robert Sanford
2026-12-01  0:06           ` Stephen Hemminger
2026-11-30 20:51         ` [PATCH v5 3/3] test/mempool: add list walk race test Robert Sanford

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=98CBD80474FA8B44BF855DF32C47DC35F65B17@smartserver.smartshare.dk \
    --to=mb@smartsharesystems.com \
    --cc=andrew.rybchenko@oktetlabs.ru \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=olivier.matz@6wind.com \
    --cc=rsanford2@gmail.com \
    --cc=rsanford@akamai.com \
    --cc=stable@dpdk.org \
    --cc=thomas@monjalon.net \
    /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