src/dpdk/drivers/net/ice/base/ice_sched.c
static enum ice_status
ice_sched_validate_agg_id(struct ice_port_info *pi, u32 agg_id)
{
	struct ice_sched_agg_info *agg_info;
	struct ice_sched_agg_info *tmp;
	bool agg_id_present = false;
	enum ice_status status;

	status = ice_sched_validate_agg_srl_node(pi, agg_id);
	if (status)
		return status;

	LIST_FOR_EACH_ENTRY_SAFE(agg_info, tmp, &pi->hw->agg_list,
				 ice_sched_agg_info, list_entry)
		if (agg_info->agg_id == agg_id) {
			agg_id_present = true;
			break;
		}

	if (!agg_id_present)
		return ICE_ERR_PARAM;

	return ICE_SUCCESS;
}
/**
 * ice_sched_validate_agg_id - Validate aggregator id
 * @pi: port information structure
 * @agg_id: aggregator ID
 *
 * This function validates aggregator id. Caller holds the scheduler lock.
 */
Validate aggregator id
@pi: port information structure
@agg_id: aggregator ID

This function validates aggregator id. Caller holds the scheduler lock.
Validate aggregator id @pi : port information structure @agg_id : aggregator ID This function validates aggregator id . Caller holds the scheduler lock .
static enum ice_status
ice_sched_validate_agg_id(struct ice_port_info *pi, u32 agg_id)
{
	struct ice_sched_agg_info *agg_info;
	struct ice_sched_agg_info *tmp;
	bool agg_id_present = false;
	enum ice_status status;
	status = ice_sched_validate_agg_srl_node(pi, agg_id);
	if (status)
		return status;
	LIST_FOR_EACH_ENTRY_SAFE(agg_info, tmp, &pi->hw->agg_list,
				 ice_sched_agg_info, list_entry)
		if (agg_info->agg_id == agg_id) {
			agg_id_present = true;
			break;
		}
	if (!agg_id_present)
		return ICE_ERR_PARAM;
	return ICE_SUCCESS;
}
static enum ice_status ice_sched_validate_agg_id ( struct ice_port_info * pi , u32 agg_id ) { struct ice_sched_agg_info * agg_info ; struct ice_sched_agg_info * tmp ; bool agg_id_present = false ; enum ice_status status ; status = ice_sched_validate_agg_srl_node ( pi , agg_id ) ; if ( status ) return status ; LIST_FOR_EACH_ENTRY_SAFE ( agg_info , tmp , & pi -> hw -> agg_list , ice_sched_agg_info , list_entry ) if ( agg_info -> agg_id == agg_id ) { agg_id_present = true ; break ; } if ( ! agg_id_present ) return ICE_ERR_PARAM ; return ICE_SUCCESS ; }
ice_sched_validate_agg_id - Validate aggregator id
 @pi: port information structure
 @agg_id: aggregator ID
ice_sched_validate_agg_id - Validate aggregator id @pi : port information structure @agg_id : aggregator ID