From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E543EA04B8; Tue, 12 Nov 2019 08:45:39 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2E2B92BA2; Tue, 12 Nov 2019 08:45:39 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 7B40E2B9E for ; Tue, 12 Nov 2019 08:45:37 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Nov 2019 23:45:36 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,295,1569308400"; d="scan'208";a="355030936" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga004.jf.intel.com with ESMTP; 11 Nov 2019 23:45:36 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 11 Nov 2019 23:45:35 -0800 Received: from shsmsx105.ccr.corp.intel.com ([169.254.11.225]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.127]) with mapi id 14.03.0439.000; Tue, 12 Nov 2019 15:45:34 +0800 From: "Zhang, Qi Z" To: "Wang, ShougangX" , "dev@dpdk.org" CC: "Yang, Qiming" , "Xing, Beilei" , "Wang, ShougangX" Thread-Topic: [dpdk-dev] [PATCH v3 1/4] net/ice: fix memzone reserve and release in FDIR Thread-Index: AQHVmShcik4qe6985kCBEGq1DW4uSqeHJ+dQ Date: Tue, 12 Nov 2019 07:45:33 +0000 Message-ID: <039ED4275CED7440929022BC67E7061153DC82E7@SHSMSX105.ccr.corp.intel.com> References: <20191107022217.41046-1-shougangx.wang@intel.com> <20191112005056.30805-1-shougangx.wang@intel.com> <20191112005056.30805-2-shougangx.wang@intel.com> In-Reply-To: <20191112005056.30805-2-shougangx.wang@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZjQ0MTA0MDUtY2EyOC00OTU2LTg2ODYtNDZhMTU0MDdmZDk2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiQXcwSDk2dzBENjZrdDFrenlqRWJwS1lBNlhrVGx3U3VmQ1JSRGR4UW92TVwvRCtXRlhpSkk4UVg3Q2JocUlZWE0ifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v3 1/4] net/ice: fix memzone reserve and release in FDIR 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: dev On Behalf Of Wang ShougangX > Sent: Tuesday, November 12, 2019 8:51 AM > To: dev@dpdk.org > Cc: Yang, Qiming ; Xing, Beilei > ; Wang, ShougangX > Subject: [dpdk-dev] [PATCH v3 1/4] net/ice: fix memzone reserve and relea= se > in FDIR >=20 > To avoid memzone reserve failure and memory leak, following resources > management should be added. > - Check if the FDIR Memzone already exists before reserving. > - Free FDIR memzone when teardown and other failure scenarios. >=20 > Fixes: 84dc7a95a2d3 ("net/ice: enable flow director engine") >=20 > Signed-off-by: Wang ShougangX Acked-by: Qi Zhang