From: Ferruh Yigit Subject: Re: [PATCH 7/7] net/ice/base: free flow profile entries Date: Wed, 16 Jan 2019 12:15:58 +0000 Message-ID: <30ac4646-8331-a7ea-ca16-7c92a75f6b45@intel.com> References: <20190115125658.15421-1-qi.z.zhang@intel.com> <20190115125658.15421-8-qi.z.zhang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: paul.m.stillwell.jr@intel.com, dev@dpdk.org, bruce.richardson@intel.com To: Qi Zhang , wenzhuo.lu@intel.com, qiming.yang@intel.com Return-path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 40B171041 for ; Wed, 16 Jan 2019 13:16:01 +0100 (CET) In-Reply-To: <20190115125658.15421-8-qi.z.zhang@intel.com> Content-Language: en-US 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 1/15/2019 12:56 PM, Qi Zhang wrote: > Free flow profile entries when free hw tables. > > Signed-off-by: Qi Zhang > Signed-off-by: Paul M Stillwell Jr <...> > /** > + * ice_free_flow_profs - free flow profile entries > + * @hw: pointer to the hardware structure > + */ > +static void ice_free_flow_profs(struct ice_hw *hw) > +{ > + u8 i; > + > + for (i = 0; i < ICE_BLK_COUNT; i++) { > + struct ice_flow_prof *p, *tmp; > + > + if (!&hw->fl_profs[i]) > + continue; > + > + /* This call is being made as part of resource deallocation > + * during unload. Lock acquire and release will not be > + * necessary here. > + */ > + LIST_FOR_EACH_ENTRY_SAFE(p, tmp, &hw->fl_profs[i], > + ice_flow_prof, l_entry) { > + struct ice_flow_entry *e, *t; > + > + LIST_FOR_EACH_ENTRY_SAFE(e, t, &p->entries, > + ice_flow_entry, l_entry) > + ice_flow_rem_entry(hw, ICE_FLOW_ENTRY_HNDL(e)); Same 32-bits build error here for ICE_FLOW_ENTRY_HNDL usage.