DPDK patches and discussions
 help / color / mirror / Atom feed
From: Thomas Monjalon <thomas@monjalon.net>
To: "Honnappa Nagarahalli" <honnappa.nagarahalli@arm.com>,
	"Konstantin Ananyev" <konstantin.v.ananyev@yandex.ru>,
	"Morten Brørup" <mb@smartsharesystems.com>
Cc: dev@dpdk.org
Subject: Re: ring name size
Date: Mon, 04 Sep 2023 15:04:20 +0200	[thread overview]
Message-ID: <1740776.vCJZsxu672@thomas> (raw)
In-Reply-To: <98CBD80474FA8B44BF855DF32C47DC35D87B6C@smartserver.smartshare.dk>

04/09/2023 11:33, Morten Brørup:
> > From: Thomas Monjalon [mailto:thomas@monjalon.net]
> > Sent: Monday, 4 September 2023 11.31
> > 
> > Hello,
> > 
> > When creating a ring, we need to know the maximum length of the name.
> > It seems this value is not documented.
> > And there is no constant defined.
> 
> It is defined (with a description) here:
> https://elixir.bootlin.com/dpdk/latest/source/lib/ring/rte_ring_core.h#L52

Indeed, thank you Morten. I missed it when looking simply at rte_ring.h.
So we are just missing to mention it in the doxygen of the related functions.

> > There is only RTE_MEMZONE_NAMESIZE.
> > 
> > Should we document the maximum length as 31 and add a constant?
> > #define RTE_RING_NAME_SIZE RTE_MEMZONE_NAMESIZE




      reply	other threads:[~2023-09-04 13:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-04  9:30 Thomas Monjalon
2023-09-04  9:33 ` Morten Brørup
2023-09-04 13:04   ` Thomas Monjalon [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=1740776.vCJZsxu672@thomas \
    --to=thomas@monjalon.net \
    --cc=dev@dpdk.org \
    --cc=honnappa.nagarahalli@arm.com \
    --cc=konstantin.v.ananyev@yandex.ru \
    --cc=mb@smartsharesystems.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).