From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon 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 Message-ID: <2285844.3zIKokJB5S@xps13> References: <1399630493-26739-1-git-send-email-olivier.matz@6wind.com> <2601191342CEEE43887BDE71AB9772580EFA4879@IRSMSX105.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Olivier Matz Return-path: In-Reply-To: <2601191342CEEE43887BDE71AB9772580EFA4879-kPTMFJFq+rEu0RiL9chJVbfspsVTdybXVpNB7YpNyf8@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" > 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 Applied for version 1.7.0 -- Thomas