From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v4] ring: add function to free a ring Date: Wed, 04 Nov 2015 00:50:58 +0100 Message-ID: <3453125.3J2Qm3Fufk@xps13> References: <1443794485-215546-1-git-send-email-pablo.de.lara.guarch@intel.com> <1443801224-244428-1-git-send-email-pablo.de.lara.guarch@intel.com> <561D0ED1.8010302@6wind.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Pablo de Lara Return-path: Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by dpdk.org (Postfix) with ESMTP id 5BE182A5F for ; Wed, 4 Nov 2015 00:52:14 +0100 (CET) Received: by wicfx6 with SMTP id fx6so79488813wic.1 for ; Tue, 03 Nov 2015 15:52:14 -0800 (PST) In-Reply-To: <561D0ED1.8010302@6wind.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > > 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 > > Acked-by: Olivier Matz Applied, thanks