src/dpdk/drivers/net/ice/base/ice_sched.c
static enum ice_status
ice_sched_set_save_vsi_srl_node_bw(struct ice_port_info *pi, u16 vsi_handle,
				   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_vsi_bw(pi, vsi_handle, tc, rl_type, bw);
	}
	return status;
}
/**
 * ice_sched_set_save_vsi_srl_node_bw - set VSI shared limit values
 * @pi: port information structure
 * @vsi_handle: software VSI handle
 * @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 VSI type nodes across given traffic
 * class, and saves those value for later use for replaying purposes. The
 * caller holds the scheduler lock.
 */


Configure shared rate limiter(SRL) of VSI type nodes across given traffic
class, and saves those value for later use for replaying purposes. The
caller holds the scheduler lock.
Configure shared rate limiter ( SRL ) of VSI type nodes across given 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_vsi_srl_node_bw(struct ice_port_info *pi, u16 vsi_handle,
				   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_vsi_bw(pi, vsi_handle, tc, rl_type, bw);
	}
	return status;
}
static enum ice_status ice_sched_set_save_vsi_srl_node_bw ( struct ice_port_info * pi , u16 vsi_handle , 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_vsi_bw ( pi , vsi_handle , tc , rl_type , bw ) ; } return status ; }
ice_sched_set_save_vsi_srl_node_bw - set VSI shared limit values
 @pi: port information structure
 @vsi_handle: software VSI handle
 @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_vsi_srl_node_bw - set VSI shared limit values @pi : port information structure @vsi_handle : software VSI handle @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