src/dpdk/drivers/net/ice/base/ice_sched.c
static enum ice_status
ice_sched_replay_agg_bw(struct ice_hw *hw, struct ice_sched_agg_info *agg_info)
{
	struct ice_sched_node *tc_node, *agg_node;
	enum ice_status status = ICE_SUCCESS;
	u8 tc;

	if (!agg_info)
		return ICE_ERR_PARAM;
	ice_for_each_traffic_class(tc) {
		if (!ice_is_any_bit_set(agg_info->bw_t_info[tc].bw_t_bitmap,
					ICE_BW_TYPE_CNT))
			continue;
		tc_node = ice_sched_get_tc_node(hw->port_info, tc);
		if (!tc_node) {
			status = ICE_ERR_PARAM;
			break;
		}
		agg_node = ice_sched_get_agg_node(hw->port_info, tc_node,
						  agg_info->agg_id);
		if (!agg_node) {
			status = ICE_ERR_PARAM;
			break;
		}
		status = ice_sched_replay_node_bw(hw, agg_node,
						  &agg_info->bw_t_info[tc]);
		if (status)
			break;
	}
	return status;
}
/**
 * ice_sched_replay_agg_bw - replay aggregator node(s) BW
 * @hw: pointer to the HW struct
 * @agg_info: aggregator data structure
 *
 * This function re-creates aggregator type nodes. The caller needs to hold
 * the scheduler lock.
 */
replay aggregator node(s) BW
@hw: pointer to the HW struct
@agg_info: aggregator data structure

This function re-creates aggregator type nodes. The caller needs to hold
the scheduler lock.
replay aggregator node ( s ) BW @hw : pointer to the HW struct @agg_info : aggregator data structure This function re - creates aggregator type nodes . The caller needs to hold the scheduler lock .
static enum ice_status
ice_sched_replay_agg_bw(struct ice_hw *hw, struct ice_sched_agg_info *agg_info)
{
	struct ice_sched_node *tc_node, *agg_node;
	enum ice_status status = ICE_SUCCESS;
	u8 tc;
	if (!agg_info)
		return ICE_ERR_PARAM;
	ice_for_each_traffic_class(tc) {
		if (!ice_is_any_bit_set(agg_info->bw_t_info[tc].bw_t_bitmap,
					ICE_BW_TYPE_CNT))
			continue;
		tc_node = ice_sched_get_tc_node(hw->port_info, tc);
		if (!tc_node) {
			status = ICE_ERR_PARAM;
			break;
		}
		agg_node = ice_sched_get_agg_node(hw->port_info, tc_node,
						  agg_info->agg_id);
		if (!agg_node) {
			status = ICE_ERR_PARAM;
			break;
		}
		status = ice_sched_replay_node_bw(hw, agg_node,
						  &agg_info->bw_t_info[tc]);
		if (status)
			break;
	}
	return status;
}
static enum ice_status ice_sched_replay_agg_bw ( struct ice_hw * hw , struct ice_sched_agg_info * agg_info ) { struct ice_sched_node * tc_node , * agg_node ; enum ice_status status = ICE_SUCCESS ; u8 tc ; if ( ! agg_info ) return ICE_ERR_PARAM ; ice_for_each_traffic_class ( tc ) { if ( ! ice_is_any_bit_set ( agg_info -> bw_t_info [ tc ] . bw_t_bitmap , ICE_BW_TYPE_CNT ) ) continue ; tc_node = ice_sched_get_tc_node ( hw -> port_info , tc ) ; if ( ! tc_node ) { status = ICE_ERR_PARAM ; break ; } agg_node = ice_sched_get_agg_node ( hw -> port_info , tc_node , agg_info -> agg_id ) ; if ( ! agg_node ) { status = ICE_ERR_PARAM ; break ; } status = ice_sched_replay_node_bw ( hw , agg_node , & agg_info -> bw_t_info [ tc ] ) ; if ( status ) break ; } return status ; }
ice_sched_replay_agg_bw - replay aggregator node(s) BW
 @hw: pointer to the HW struct
 @agg_info: aggregator data structure
ice_sched_replay_agg_bw - replay aggregator node ( s ) BW @hw : pointer to the HW struct @agg_info : aggregator data structure