[dpdk-dev] [PATCH 7/7] net/ice/base: free flow profile entries

Ferruh Yigit ferruh.yigit at intel.com
Wed Jan 16 13:15:58 CET 2019


On 1/15/2019 12:56 PM, Qi Zhang wrote:
> Free flow profile entries when free hw tables.
> 
> Signed-off-by: Qi Zhang <qi.z.zhang at intel.com>
> Signed-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr at intel.com>

<...>

>  /**
> + * 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.


More information about the dev mailing list