src/dpdk/drivers/net/ice/base/ice_sched.c
enum ice_status
ice_cfg_vsi_bw_dflt_lmt_per_tc(struct ice_port_info *pi, u16 vsi_handle, u8 tc,
			       enum ice_rl_type rl_type)
{
	enum ice_status status;

	status = ice_sched_set_node_bw_lmt_per_tc(pi, vsi_handle,
						  ICE_AGG_TYPE_VSI,
						  tc, rl_type,
						  ICE_SCHED_DFLT_BW);
	if (!status) {
		ice_acquire_lock(&pi->sched_lock);
		status = ice_sched_save_vsi_bw(pi, vsi_handle, tc, rl_type,
					       ICE_SCHED_DFLT_BW);
		ice_release_lock(&pi->sched_lock);
	}
	return status;
}
/**
 * ice_cfg_dflt_vsi_bw_lmt_per_tc - configure default VSI BW limit per TC
 * @pi: port information structure
 * @vsi_handle: software VSI handle
 * @tc: traffic class
 * @rl_type: min or max
 *
 * This function configures default BW limit of VSI scheduling node based on TC
 * information.
 */
configure default VSI BW limit per TC
@pi: port information structure
@vsi_handle: software VSI handle
@tc: traffic class
@rl_type: min or max

This function configures default BW limit of VSI scheduling node based on TC
information.
configure default VSI BW limit per TC @pi : port information structure @vsi_handle : software VSI handle @tc : traffic class @rl_type : min or max This function configures default BW limit of VSI scheduling node based on TC information .
enum ice_status
ice_cfg_vsi_bw_dflt_lmt_per_tc(struct ice_port_info *pi, u16 vsi_handle, u8 tc,
			       enum ice_rl_type rl_type)
{
	enum ice_status status;
	status = ice_sched_set_node_bw_lmt_per_tc(pi, vsi_handle,
						  ICE_AGG_TYPE_VSI,
						  tc, rl_type,
						  ICE_SCHED_DFLT_BW);
	if (!status) {
		ice_acquire_lock(&pi->sched_lock);
		status = ice_sched_save_vsi_bw(pi, vsi_handle, tc, rl_type,
					       ICE_SCHED_DFLT_BW);
		ice_release_lock(&pi->sched_lock);
	}
	return status;
}
enum ice_status ice_cfg_vsi_bw_dflt_lmt_per_tc ( struct ice_port_info * pi , u16 vsi_handle , u8 tc , enum ice_rl_type rl_type ) { enum ice_status status ; status = ice_sched_set_node_bw_lmt_per_tc ( pi , vsi_handle , ICE_AGG_TYPE_VSI , tc , rl_type , ICE_SCHED_DFLT_BW ) ; if ( ! status ) { ice_acquire_lock ( & pi -> sched_lock ) ; status = ice_sched_save_vsi_bw ( pi , vsi_handle , tc , rl_type , ICE_SCHED_DFLT_BW ) ; ice_release_lock ( & pi -> sched_lock ) ; } return status ; }
ice_cfg_dflt_vsi_bw_lmt_per_tc - configure default VSI BW limit per TC
 @pi: port information structure
 @vsi_handle: software VSI handle
 @tc: traffic class
 @rl_type: min or max
ice_cfg_dflt_vsi_bw_lmt_per_tc - configure default VSI BW limit per TC @pi : port information structure @vsi_handle : software VSI handle @tc : traffic class @rl_type : min or max