From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <bruce.richardson@intel.com>
Received: from mga04.intel.com (mga04.intel.com [192.55.52.120])
 by dpdk.org (Postfix) with ESMTP id 305152B96
 for <dev@dpdk.org>; Fri, 11 Mar 2016 17:54:53 +0100 (CET)
Received: from fmsmga004.fm.intel.com ([10.253.24.48])
 by fmsmga104.fm.intel.com with ESMTP; 11 Mar 2016 08:54:52 -0800
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.24,321,1455004800"; d="scan'208";a="64382042"
Received: from cberenge-mobl.ger.corp.intel.com ([10.252.22.153])
 by fmsmga004.fm.intel.com with SMTP; 11 Mar 2016 08:54:50 -0800
Received: by  (sSMTP sendmail emulation); Fri, 11 Mar 2016 16:54:49 +0025
Date: Fri, 11 Mar 2016 16:54:49 +0000
From: Bruce Richardson <bruce.richardson@intel.com>
To: Mauricio Vasquez B <mauricio.vasquezbernal@studenti.polito.it>
Message-ID: <20160311165449.GF19860@bricha3-MOBL3>
References: <1457367631-22726-1-git-send-email-mauricio.vasquezbernal@studenti.polito.it>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1457367631-22726-1-git-send-email-mauricio.vasquezbernal@studenti.polito.it>
Organization: Intel Shannon Ltd.
User-Agent: Mutt/1.5.23 (2014-03-12)
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH] pmd_ring: free rings when detaching
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: patches and discussions about DPDK <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Fri, 11 Mar 2016 16:54:53 -0000

On Mon, Mar 07, 2016 at 05:20:31PM +0100, Mauricio Vasquez B wrote:
> When a device is created with "CREATE" as action, new rings are
> allocated for it, then it is a good practice to free them when the
> rte_ethdev_dettach method is invoked by the application.
> 
> Rings are not freeded when "ATTACH" is used or when the device is
> created by means of the rte_eth_from_rings function.
> 
> Signed-off-by: Mauricio Vasquez B <mauricio.vasquezbernal@studenti.polito.it>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>