src/dpdk/drivers/net/ice/base/ice_sched.c
static void ice_sched_clear_rl_prof(struct ice_port_info *pi)
{
	u16 ln;
	struct ice_hw *hw = pi->hw;

	for (ln = 0; ln < hw->num_tx_sched_layers; ln++) {
		struct ice_aqc_rl_profile_info *rl_prof_elem;
		struct ice_aqc_rl_profile_info *rl_prof_tmp;

		LIST_FOR_EACH_ENTRY_SAFE(rl_prof_elem, rl_prof_tmp,
					 &hw->rl_prof_list[ln],
					 ice_aqc_rl_profile_info, list_entry) {
			enum ice_status status;

			rl_prof_elem->prof_id_ref = 0;
			status = ice_sched_del_rl_profile(hw, rl_prof_elem);
			if (status) {
				ice_debug(hw, ICE_DBG_SCHED, "Remove rl profile failed\n");
				/* On error, free mem required */
				LIST_DEL(&rl_prof_elem->list_entry);
				ice_free(hw, rl_prof_elem);
			}
		}
	}
}
/**
 * ice_sched_clear_rl_prof - clears RL prof entries
 * @pi: port information structure
 *
 * This function removes all RL profile from HW as well as from SW DB.
 */
clears RL prof entries
@pi: port information structure

This function removes all RL profile from HW as well as from SW DB.
clears RL prof entries @pi : port information structure This function removes all RL profile from HW as well as from SW DB .
static void ice_sched_clear_rl_prof(struct ice_port_info *pi)
{
	u16 ln;
	struct ice_hw *hw = pi->hw;
	for (ln = 0; ln < hw->num_tx_sched_layers; ln++) {
		struct ice_aqc_rl_profile_info *rl_prof_elem;
		struct ice_aqc_rl_profile_info *rl_prof_tmp;
		LIST_FOR_EACH_ENTRY_SAFE(rl_prof_elem, rl_prof_tmp,
					 &hw->rl_prof_list[ln],
					 ice_aqc_rl_profile_info, list_entry) {
			enum ice_status status;
			rl_prof_elem->prof_id_ref = 0;
			status = ice_sched_del_rl_profile(hw, rl_prof_elem);
			if (status) {
				ice_debug(hw, ICE_DBG_SCHED, "Remove rl profile failed\n");
				LIST_DEL(&rl_prof_elem->list_entry);
				ice_free(hw, rl_prof_elem);
			}
		}
	}
}
static void ice_sched_clear_rl_prof ( struct ice_port_info * pi ) { u16 ln ; struct ice_hw * hw = pi -> hw ; for ( ln = 0 ; ln < hw -> num_tx_sched_layers ; ln ++ ) { struct ice_aqc_rl_profile_info * rl_prof_elem ; struct ice_aqc_rl_profile_info * rl_prof_tmp ; LIST_FOR_EACH_ENTRY_SAFE ( rl_prof_elem , rl_prof_tmp , & hw -> rl_prof_list [ ln ] , ice_aqc_rl_profile_info , list_entry ) { enum ice_status status ; rl_prof_elem -> prof_id_ref = 0 ; status = ice_sched_del_rl_profile ( hw , rl_prof_elem ) ; if ( status ) { ice_debug ( hw , ICE_DBG_SCHED , " \n " ) ; LIST_DEL ( & rl_prof_elem -> list_entry ) ; ice_free ( hw , rl_prof_elem ) ; } } } }
ice_sched_clear_rl_prof - clears RL prof entries
 @pi: port information structure
ice_sched_clear_rl_prof - clears RL prof entries @pi : port information structure
/* On error, free mem required */