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 EB843A0471 for ; Mon, 9 Sep 2019 05:04:02 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B02371EA99; Mon, 9 Sep 2019 05:04:01 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 56A951E8CB for ; Mon, 9 Sep 2019 05:03:59 +0200 (CEST) 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; 08 Sep 2019 20:03:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,483,1559545200"; d="scan'208";a="199966949" Received: from pgsmsx108.gar.corp.intel.com ([10.221.44.103]) by fmsmga001.fm.intel.com with ESMTP; 08 Sep 2019 20:03:57 -0700 Received: from pgsmsx103.gar.corp.intel.com ([169.254.2.183]) by PGSMSX108.gar.corp.intel.com ([169.254.8.125]) with mapi id 14.03.0439.000; Mon, 9 Sep 2019 11:03:56 +0800 From: "Zhao1, Wei" To: "Ye, Xiaolong" , "Wang, Ying A" CC: "Zhang, Qi Z" , "Yang, Qiming" , "dev@dpdk.org" Thread-Topic: [PATCH 4/4] net/ice: rework switch filter Thread-Index: AQHVYus7H9e8OWVwS0CWDlsKPMIPIqchLyIAgAF/bJA= Date: Mon, 9 Sep 2019 03:03:56 +0000 Message-ID: References: <20190903221522.151382-1-ying.a.wang@intel.com> <20190903221522.151382-5-ying.a.wang@intel.com> <20190908120418.GG110251@intel.com> In-Reply-To: <20190908120418.GG110251@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-originating-ip: [172.30.20.205] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH 4/4] net/ice: rework switch filter 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" Ok, Update in v2 > -----Original Message----- > From: Ye, Xiaolong > Sent: Sunday, September 8, 2019 8:04 PM > To: Wang, Ying A > Cc: Zhang, Qi Z ; Yang, Qiming > ; dev@dpdk.org; Zhao1, Wei > Subject: Re: [PATCH 4/4] net/ice: rework switch filter >=20 > On 09/04, Ying Wang wrote: > [snip] > >+ > >+static void > >+ice_free_switch_filter_rule(struct rte_flow *flow) { > >+ struct ice_rule_query_data *filter_ptr; > >+ > >+ filter_ptr =3D (struct ice_rule_query_data *) > >+ flow->rule; > >+ > >+ rte_free(filter_ptr); >=20 > What about directly call rte_free(flow->rule); ?