src/dpdk/drivers/net/ice/base/ice_sched.c
void ice_sched_clear_agg(struct ice_hw *hw)
{
	struct ice_sched_agg_info *agg_info;
	struct ice_sched_agg_info *atmp;

	LIST_FOR_EACH_ENTRY_SAFE(agg_info, atmp, &hw->agg_list,
				 ice_sched_agg_info,
				 list_entry) {
		struct ice_sched_agg_vsi_info *agg_vsi_info;
		struct ice_sched_agg_vsi_info *vtmp;

		LIST_FOR_EACH_ENTRY_SAFE(agg_vsi_info, vtmp,
					 &agg_info->agg_vsi_list,
					 ice_sched_agg_vsi_info, list_entry) {
			LIST_DEL(&agg_vsi_info->list_entry);
			ice_free(hw, agg_vsi_info);
		}
		LIST_DEL(&agg_info->list_entry);
		ice_free(hw, agg_info);
	}
}
/**
 * ice_sched_clear_agg - clears the aggregator related information
 * @hw: pointer to the hardware structure
 *
 * This function removes aggregator list and free up aggregator related memory
 * previously allocated.
 */
clears the aggregator related information
@hw: pointer to the hardware structure

This function removes aggregator list and free up aggregator related memory
previously allocated.
clears the aggregator related information @hw : pointer to the hardware structure This function removes aggregator list and free up aggregator related memory previously allocated .
void ice_sched_clear_agg(struct ice_hw *hw)
{
	struct ice_sched_agg_info *agg_info;
	struct ice_sched_agg_info *atmp;
	LIST_FOR_EACH_ENTRY_SAFE(agg_info, atmp, &hw->agg_list,
				 ice_sched_agg_info,
				 list_entry) {
		struct ice_sched_agg_vsi_info *agg_vsi_info;
		struct ice_sched_agg_vsi_info *vtmp;
		LIST_FOR_EACH_ENTRY_SAFE(agg_vsi_info, vtmp,
					 &agg_info->agg_vsi_list,
					 ice_sched_agg_vsi_info, list_entry) {
			LIST_DEL(&agg_vsi_info->list_entry);
			ice_free(hw, agg_vsi_info);
		}
		LIST_DEL(&agg_info->list_entry);
		ice_free(hw, agg_info);
	}
}
void ice_sched_clear_agg ( struct ice_hw * hw ) { struct ice_sched_agg_info * agg_info ; struct ice_sched_agg_info * atmp ; LIST_FOR_EACH_ENTRY_SAFE ( agg_info , atmp , & hw -> agg_list , ice_sched_agg_info , list_entry ) { struct ice_sched_agg_vsi_info * agg_vsi_info ; struct ice_sched_agg_vsi_info * vtmp ; LIST_FOR_EACH_ENTRY_SAFE ( agg_vsi_info , vtmp , & agg_info -> agg_vsi_list , ice_sched_agg_vsi_info , list_entry ) { LIST_DEL ( & agg_vsi_info -> list_entry ) ; ice_free ( hw , agg_vsi_info ) ; } LIST_DEL ( & agg_info -> list_entry ) ; ice_free ( hw , agg_info ) ; } }
ice_sched_clear_agg - clears the aggregator related information
 @hw: pointer to the hardware structure
ice_sched_clear_agg - clears the aggregator related information @hw : pointer to the hardware structure