[dpdk-dev] [PATCH v4] ring: add function to free a ring

Thomas Monjalon thomas.monjalon at 6wind.com
Wed Nov 4 00:50:58 CET 2015


> > 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>

Applied, thanks


More information about the dev mailing list