[dpdk-dev] [PATCH v4] ring: add function to free a ring
Olivier MATZ
olivier.matz at 6wind.com
Tue Oct 13 16:01:53 CEST 2015
Hi Pablo,
On 10/02/2015 05:53 PM, Pablo de Lara wrote:
> From: "De Lara Guarch, Pablo" <pablo.de.lara.guarch at intel.com>
>
> When creating a ring, a memzone is created to allocate it in memory,
> but the ring could not be freed, as memzones could not be.
>
> Since memzones can be freed now, then rings can be as well,
> taking into account if they were initialized using pre-allocated memory
> (in which case, memory should be freed externally) or using rte_memzone_reserve
> (with rte_ring_create), freeing the memory with rte_memzone_free.
>
> Signed-off-by: Pablo de Lara <pablo.de.lara.guarch at intel.com>
Acked-by: Olivier Matz <olivier.matz at 6wind.com>
More information about the dev
mailing list