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 8E53DA0471 for ; Sun, 8 Sep 2019 14:06:31 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 73E591EDF5; Sun, 8 Sep 2019 14:06:30 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id D137A1EDF1 for ; Sun, 8 Sep 2019 14:06:28 +0200 (CEST) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Sep 2019 05:06:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,481,1559545200"; d="scan'208";a="335328865" Received: from yexl-server.sh.intel.com (HELO localhost) ([10.67.117.5]) by orsmga004.jf.intel.com with ESMTP; 08 Sep 2019 05:06:26 -0700 Date: Sun, 8 Sep 2019 20:04:18 +0800 From: Ye Xiaolong To: Ying Wang Cc: qi.z.zhang@intel.com, qiming.yang@intel.com, dev@dpdk.org, wei.zhao1@intel.com Message-ID: <20190908120418.GG110251@intel.com> References: <20190903221522.151382-1-ying.a.wang@intel.com> <20190903221522.151382-5-ying.a.wang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190903221522.151382-5-ying.a.wang@intel.com> User-Agent: Mutt/1.9.4 (2018-02-28) 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" 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 = (struct ice_rule_query_data *) >+ flow->rule; >+ >+ rte_free(filter_ptr); What about directly call rte_free(flow->rule); ?