src/dpdk/drivers/net/ice/base/ice_sched.c
static enum ice_status
ice_sched_set_save_agg_srl_node_bw(struct ice_port_info *pi, u32 agg_id, u8 tc,
				   struct ice_sched_node *srl_node,
				   enum ice_rl_type rl_type, u32 bw)
{
	enum ice_status status;

	if (bw == ICE_SCHED_DFLT_BW) {
		status = ice_sched_set_node_bw_dflt_lmt(pi, srl_node, rl_type);
	} else {
		status = ice_sched_set_node_bw_lmt(pi, srl_node, rl_type, bw);
		if (status)
			return status;
		status = ice_sched_save_agg_bw(pi, agg_id, tc, rl_type, bw);
	}
	return status;
}
/**
 * ice_sched_set_save_agg_srl_node_bw - set aggregator shared limit values
 * @pi: port information structure
 * @agg_id: aggregator ID
 * @tc: traffic class
 * @srl_node: sched node to configure
 * @rl_type: rate limit type minimum, maximum, or shared
 * @bw: minimum, maximum, or shared bandwidth in Kbps
 *
 * Configure shared rate limiter(SRL) of aggregator type nodes across
 * requested traffic class, and saves those value for later use for
 * replaying purposes. The caller holds the scheduler lock.
 */


Configure shared rate limiter(SRL) of aggregator type nodes across
requested traffic class, and saves those value for later use for
replaying purposes. The caller holds the scheduler lock.
Configure shared rate limiter ( SRL ) of aggregator type nodes across requested traffic class and saves those value for later use for replaying purposes . The caller holds the scheduler lock .
static enum ice_status
ice_sched_set_save_agg_srl_node_bw(struct ice_port_info *pi, u32 agg_id, u8 tc,
				   struct ice_sched_node *srl_node,
				   enum ice_rl_type rl_type, u32 bw)
{
	enum ice_status status;
	if (bw == ICE_SCHED_DFLT_BW) {
		status = ice_sched_set_node_bw_dflt_lmt(pi, srl_node, rl_type);
	} else {
		status = ice_sched_set_node_bw_lmt(pi, srl_node, rl_type, bw);
		if (status)
			return status;
		status = ice_sched_save_agg_bw(pi, agg_id, tc, rl_type, bw);
	}
	return status;
}
static enum ice_status ice_sched_set_save_agg_srl_node_bw ( struct ice_port_info * pi , u32 agg_id , u8 tc , struct ice_sched_node * srl_node , enum ice_rl_type rl_type , u32 bw ) { enum ice_status status ; if ( bw == ICE_SCHED_DFLT_BW ) { status = ice_sched_set_node_bw_dflt_lmt ( pi , srl_node , rl_type ) ; } else { status = ice_sched_set_node_bw_lmt ( pi , srl_node , rl_type , bw ) ; if ( status ) return status ; status = ice_sched_save_agg_bw ( pi , agg_id , tc , rl_type , bw ) ; } return status ; }
ice_sched_set_save_agg_srl_node_bw - set aggregator shared limit values
 @pi: port information structure
 @agg_id: aggregator ID
 @tc: traffic class
 @srl_node: sched node to configure
 @rl_type: rate limit type minimum, maximum, or shared
 @bw: minimum, maximum, or shared bandwidth in Kbps
ice_sched_set_save_agg_srl_node_bw - set aggregator shared limit values @pi : port information structure @agg_id : aggregator ID @tc : traffic class @srl_node : sched node to configure @rl_type : rate limit type minimum maximum or shared @bw : minimum maximum or shared bandwidth in Kbps