From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 8DEC11B40C for ; Mon, 29 Jan 2018 10:40:04 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Jan 2018 01:40:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,429,1511856000"; d="scan'208";a="26268349" Received: from aburakov-mobl.ger.corp.intel.com (HELO [10.237.220.145]) ([10.237.220.145]) by fmsmga001.fm.intel.com with ESMTP; 29 Jan 2018 01:40:02 -0800 To: Radoslaw Biernacki Cc: dev@dpdk.org References: From: "Burakov, Anatoly" Message-ID: <74c843c4-6ecf-e645-0220-c232a4448f3a@intel.com> Date: Mon, 29 Jan 2018 09:40:01 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 1/2] test/memzone: add test for memzone count in eal mem config X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jan 2018 09:40:05 -0000 On 27-Jan-18 2:53 PM, Radoslaw Biernacki wrote: > Looks OK. > > Following note is aside from the patch. > Might be beneficial (in some rare cases) to add bailout recovery with > goto's in test_memzone_basic() > Just in case one of the rte_memzone_reserve() we should not make return -1, > but instead a goto to below section where we call rte_memzone_free(). > This way we would be able to free only the allocated memzones and prevent > leaking out those memzones to other tests. Thanks, and yep, it's on my todo list :) didn't get around to it yet. > > Reviewed-by: Radoslaw Biernacki > adoslaw.biernacki@linaro.com> > -- Thanks, Anatoly