From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind_com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=cuM1h6QnUVagnzN4zx3SW2A30U0wwO8D48oA37H7sEM=; b=xrYgr6/6YezC4Pn6KGJxF1Nxmq/5kAPefYzUpox7ZgqnqOqL/fZtZsroIPZqh8fbf2 13MnJQaLKVQsgCdFVQULSF++XiYrGmuqfhSwuUcDsYGejbnPuR9hzhDV87z2ykce2dii vHevzfcYqfqKPMbq7puclkKyc6lXO7N6pHib1Hzq4a1iN4r08j9CGlkncd8ZuAIhiOk1 CadWG2xQnnIWnsnxRhjSD7oHyC+hGJOKEOnSJk4zviJhzaRDyQ8yFLlwfB2Cfx9+u5uU u/b2zriwS8zCqAQEDKpxKiXP8B004j7Bnx4MF0Xwx6bmu5wwSbwXRTk4v2diFUlqcvaA e/lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=cuM1h6QnUVagnzN4zx3SW2A30U0wwO8D48oA37H7sEM=; b=A7Tb3IxvSvvo1Tn1crI1Pudn+D/LzR0CZwk7oXDJY6eoK1g3JaK+DomaTSkJir6tnb mVomvuk/YG3YHRcmy3Qs72oQu5XIt2n5gJm0NUAf8bMCHaZEJTAxMotzMoQaymtzEhK0 lTzFGcsqpHCvCoUsAeBsPWDnOj2NVYyKIHOuX6fqdH3eVtWjTZja1EPp0YzCSVkGUjGd JFeCRnXElfS+vrXPoRbtOMLFU/dyhKqDj/PTj3RqNNKNSA9/xbq3OpgLorpvUQCkjKPy RRThmvf783iJr36upWW0qtDxBLWOFr554cedkUcfYz+/3t10yROjgMjgbJhdAA2nFD8O vTnQ== X-Gm-Message-State: ALoCoQlJSOFx2kAaqmzjg/QrC0zLgj4rfje7KTg/o8hFdWiLbecNCl0BdVK1xSZJLibcHYvarBm9 X-Received: by 10.194.189.228 with SMTP id gl4mr31811424wjc.44.1446594734238; Tue, 03 Nov 2015 15:52:14 -0800 (PST) Received: from xps13.localnet ([93.158.41.25]) by smtp.gmail.com with ESMTPSA id he3sm29967677wjc.48.2015.11.03.15.52.13 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 03 Nov 2015 15:52:13 -0800 (PST) From: Thomas Monjalon To: Pablo de Lara Date: Wed, 04 Nov 2015 00:50:58 +0100 Message-ID: <3453125.3J2Qm3Fufk@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <561D0ED1.8010302@6wind.com> 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-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v4] ring: add function to free a ring X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Nov 2015 23:52:14 -0000 > > 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