From: Thomas Monjalon <thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
To: Olivier Matz <olivier.matz-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
Cc: dev-VfR2kkLFssw@public.gmane.org
Subject: Re: [PATCH v2 0/2] ring: allow to init a rte_ring outside of an rte_memzone
Date: Tue, 13 May 2014 16:32:40 +0200 [thread overview]
Message-ID: <2285844.3zIKokJB5S@xps13> (raw)
In-Reply-To: <2601191342CEEE43887BDE71AB9772580EFA4879-kPTMFJFq+rEu0RiL9chJVbfspsVTdybXVpNB7YpNyf8@public.gmane.org>
> These 2 patches adds 2 new functions that permits to initialize and use
> a rte_ring anywhere in memory.
>
> Before this patches, only rte_ring_create() was available. This function
> allocates a rte_memzone (that cannot be freed) and initializes a ring
> inside.
>
> This series allows to do the following:
> size = rte_ring_get_memsize(1024);
> r = malloc(size);
> rte_ring_init(r, "my_ring", 1024, 0);
>
>
> Changes included in v2:
> - fix syntax for functions definitions in rte_ring_get_memsize()
> - use RTE_ALIGN() to get nearest higher multiple of cache line size
> - fix description of rte_ring_init() in doxygen comments
>
> Olivier Matz (2):
> ring: introduce rte_ring_get_memsize()
> ring: introduce rte_ring_init()
Acked-by: Konstantin Ananyev <konstantin.ananyev-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Applied for version 1.7.0
--
Thomas
prev parent reply other threads:[~2014-05-13 14:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-09 10:14 [PATCH v2 0/2] ring: allow to init a rte_ring outside of an rte_memzone Olivier Matz
[not found] ` <1399630493-26739-1-git-send-email-olivier.matz-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2014-05-09 10:14 ` [PATCH v2 1/2] ring: introduce rte_ring_get_memsize() Olivier Matz
2014-05-09 10:14 ` [PATCH v2 2/2] ring: introduce rte_ring_init() Olivier Matz
2014-05-09 12:17 ` [PATCH v2 0/2] ring: allow to init a rte_ring outside of an rte_memzone Ananyev, Konstantin
[not found] ` <2601191342CEEE43887BDE71AB9772580EFA4879-kPTMFJFq+rEu0RiL9chJVbfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-05-13 14:32 ` 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=2285844.3zIKokJB5S@xps13 \
--to=thomas.monjalon-pdr9zngts4eavxtiumwx3w@public.gmane.org \
--cc=dev-VfR2kkLFssw@public.gmane.org \
--cc=olivier.matz-pdR9zngts4EAvxtiuMwx3w@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.