DPDK patches and discussions
 help / color / mirror / Atom feed
From: Neil Horman <nhorman@tuxdriver.com>
To: "Wiles, Keith" <keith.wiles@intel.com>
Cc: Hemant Agrawal <hemant.agrawal@nxp.com>,
	"olivier.matz@6wind.com" <olivier.matz@6wind.com>,
	"dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH v2] doc: announce ABI change for pktmbuf pool	create API
Date: Mon, 18 Dec 2017 09:43:36 -0500	[thread overview]
Message-ID: <20171218144336.GC24106@hmswarspite.think-freely.org> (raw)
In-Reply-To: <A1E15F77-CE57-4332-A4B5-04B7BB59D798@intel.com>

On Mon, Dec 18, 2017 at 01:51:52PM +0000, Wiles, Keith wrote:
> 
> 
> > On Dec 15, 2017, at 4:41 AM, Hemant Agrawal <hemant.agrawal@nxp.com> wrote:
> > 
> > Introduce a new argument ops_name in rte_mempool_set_ops_byname
> > for allowing the application to optionally specify the mempool ops.
> > 
> > Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
> > ---
> > v2: fix checkpatch error
> > 
> > doc/guides/rel_notes/deprecation.rst | 3 +++
> > 1 file changed, 3 insertions(+)
> > 
> > diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst
> > index 13e8543..968ca14 100644
> > --- a/doc/guides/rel_notes/deprecation.rst
> > +++ b/doc/guides/rel_notes/deprecation.rst
> > @@ -53,3 +53,6 @@ Deprecation Notices
> > 
> > * librte_meter: The API will change to accommodate configuration profiles.
> >   Most of the API functions will have an additional opaque parameter.
> > +
> > +* librte_mbuf: a new optional parameter for representing name of mempool_ops
> > +  will be added to the API ``rte_pktmbuf_pool_create``.
> 
> 
> Sorry, for the late response I was on vacation.
> 
> My question is why do we need to change rte_pktmbuf_pool_create ABI yet again, why could we not add a new API to just set the name of the pool after it is created. This would allow all current applications to work without any ABI breakage and only require adding a new API call for anyone that wants the name. The rte_pktmbuf_pool_create() routine could assign a default name or some incrementing style name as the default. e.g. ‘pktmbuf_%d’ with a static incrementing variable or whatever you like.
> 
> Sorry if this was asked and answered before.
+1, that seems like the more flexible solution.
Neil

> 
> > -- 
> > 2.7.4
> > 
> 
> Regards,
> Keith
> 

  reply	other threads:[~2017-12-18 14:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-15 10:20 [dpdk-dev] [PATCH] " Hemant Agrawal
2017-12-15 10:41 ` [dpdk-dev] [PATCH v2] " Hemant Agrawal
2017-12-18  8:58   ` Jerin Jacob
2017-12-18 13:51   ` Wiles, Keith
2017-12-18 14:43     ` Neil Horman [this message]
2017-12-19  5:40     ` Hemant Agrawal
2017-12-19 13:41       ` Wiles, Keith
2017-12-22 15:26         ` Olivier MATZ

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=20171218144336.GC24106@hmswarspite.think-freely.org \
    --to=nhorman@tuxdriver.com \
    --cc=dev@dpdk.org \
    --cc=hemant.agrawal@nxp.com \
    --cc=keith.wiles@intel.com \
    --cc=olivier.matz@6wind.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).