src/dpdk/drivers/net/ice/base/ice_sched.c
static enum ice_status
ice_rm_agg_cfg_tc(struct ice_port_info *pi, struct ice_sched_agg_info *agg_info,
		  u8 tc, bool rm_vsi_info)
{
	enum ice_status status = ICE_SUCCESS;

	/* If nothing to remove - return success */
	if (!ice_is_tc_ena(agg_info->tc_bitmap[0], tc))
		goto exit_rm_agg_cfg_tc;

	status = ice_move_all_vsi_to_dflt_agg(pi, agg_info, tc, rm_vsi_info);
	if (status)
		goto exit_rm_agg_cfg_tc;

	/* Delete aggregator node(s) */
	status = ice_sched_rm_agg_cfg(pi, agg_info->agg_id, tc);
	if (status)
		goto exit_rm_agg_cfg_tc;

	ice_clear_bit(tc, agg_info->tc_bitmap);
exit_rm_agg_cfg_tc:
	return status;
}
/**
 * ice_rm_agg_cfg_tc - remove aggregator configuration for TC
 * @pi: port information structure
 * @agg_info: aggregator ID
 * @tc: TC number
 * @rm_vsi_info: bool value true or false
 *
 * This function removes aggregator reference to VSI of given TC. It removes
 * the aggregator configuration completely for requested TC. The caller needs
 * to hold the scheduler lock.
 */
remove aggregator configuration for TC
@pi: port information structure
@agg_info: aggregator ID
@tc: TC number
@rm_vsi_info: bool value true or false

This function removes aggregator reference to VSI of given TC. It removes
the aggregator configuration completely for requested TC. The caller needs
to hold the scheduler lock.
remove aggregator configuration for TC @pi : port information structure @agg_info : aggregator ID @tc : TC number @rm_vsi_info : bool value true or false This function removes aggregator reference to VSI of given TC . It removes the aggregator configuration completely for requested TC . The caller needs to hold the scheduler lock .
static enum ice_status
ice_rm_agg_cfg_tc(struct ice_port_info *pi, struct ice_sched_agg_info *agg_info,
		  u8 tc, bool rm_vsi_info)
{
	enum ice_status status = ICE_SUCCESS;
	if (!ice_is_tc_ena(agg_info->tc_bitmap[0], tc))
		goto exit_rm_agg_cfg_tc;
	status = ice_move_all_vsi_to_dflt_agg(pi, agg_info, tc, rm_vsi_info);
	if (status)
		goto exit_rm_agg_cfg_tc;
	status = ice_sched_rm_agg_cfg(pi, agg_info->agg_id, tc);
	if (status)
		goto exit_rm_agg_cfg_tc;
	ice_clear_bit(tc, agg_info->tc_bitmap);
exit_rm_agg_cfg_tc:
	return status;
}
static enum ice_status ice_rm_agg_cfg_tc ( struct ice_port_info * pi , struct ice_sched_agg_info * agg_info , u8 tc , bool rm_vsi_info ) { enum ice_status status = ICE_SUCCESS ; if ( ! ice_is_tc_ena ( agg_info -> tc_bitmap [ 0 ] , tc ) ) goto exit_rm_agg_cfg_tc ; status = ice_move_all_vsi_to_dflt_agg ( pi , agg_info , tc , rm_vsi_info ) ; if ( status ) goto exit_rm_agg_cfg_tc ; status = ice_sched_rm_agg_cfg ( pi , agg_info -> agg_id , tc ) ; if ( status ) goto exit_rm_agg_cfg_tc ; ice_clear_bit ( tc , agg_info -> tc_bitmap ) ; exit_rm_agg_cfg_tc : return status ; }
ice_rm_agg_cfg_tc - remove aggregator configuration for TC
 @pi: port information structure
 @agg_info: aggregator ID
 @tc: TC number
 @rm_vsi_info: bool value true or false
ice_rm_agg_cfg_tc - remove aggregator configuration for TC @pi : port information structure @agg_info : aggregator ID @tc : TC number @rm_vsi_info : bool value true or false
/* If nothing to remove - return success */ /* Delete aggregator node(s) */