src/dpdk/drivers/net/ice/base/ice_sched.c
static void ice_sched_rm_unused_rl_prof(struct ice_hw *hw)
{
	u16 ln;

	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) {
			if (!ice_sched_del_rl_profile(hw, rl_prof_elem))
				ice_debug(hw, ICE_DBG_SCHED, "Removed rl profile\n");
		}
	}
}
/**
 * ice_sched_rm_unused_rl_prof - remove unused RL profile
 * @hw: pointer to the hardware structure
 *
 * This function removes unused rate limit profiles from the HW and
 * SW DB. The caller needs to hold scheduler lock.
 */
remove unused RL profile
@hw: pointer to the hardware structure

This function removes unused rate limit profiles from the HW and
SW DB. The caller needs to hold scheduler lock.
remove unused RL profile @hw : pointer to the hardware structure This function removes unused rate limit profiles from the HW and SW DB . The caller needs to hold scheduler lock .
static void ice_sched_rm_unused_rl_prof(struct ice_hw *hw)
{
	u16 ln;
	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) {
			if (!ice_sched_del_rl_profile(hw, rl_prof_elem))
				ice_debug(hw, ICE_DBG_SCHED, "Removed rl profile\n");
		}
	}
}
static void ice_sched_rm_unused_rl_prof ( struct ice_hw * hw ) { u16 ln ; 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 ) { if ( ! ice_sched_del_rl_profile ( hw , rl_prof_elem ) ) ice_debug ( hw , ICE_DBG_SCHED , " \n " ) ; } } }
ice_sched_rm_unused_rl_prof - remove unused RL profile
 @hw: pointer to the hardware structure
ice_sched_rm_unused_rl_prof - remove unused RL profile @hw : pointer to the hardware structure