src/dpdk/drivers/net/ice/base/ice_sched.c
static enum ice_status
ice_sched_save_tc_node_bw(struct ice_port_info *pi, u8 tc,
			  enum ice_rl_type rl_type, u32 bw)
{
	if (tc >= ICE_MAX_TRAFFIC_CLASS)
		return ICE_ERR_PARAM;
	switch (rl_type) {
	case ICE_MIN_BW:
		ice_set_clear_cir_bw(&pi->tc_node_bw_t_info[tc], bw);
		break;
	case ICE_MAX_BW:
		ice_set_clear_eir_bw(&pi->tc_node_bw_t_info[tc], bw);
		break;
	case ICE_SHARED_BW:
		ice_set_clear_shared_bw(&pi->tc_node_bw_t_info[tc], bw);
		break;
	default:
		return ICE_ERR_PARAM;
	}
	return ICE_SUCCESS;
}
/**
 * ice_sched_save_tc_node_bw - save TC node BW limit
 * @pi: port information structure
 * @tc: TC number
 * @rl_type: min or max
 * @bw: bandwidth in Kbps
 *
 * This function saves the modified values of bandwidth settings for later
 * replay purpose (restore) after reset.
 */
save TC node BW limit
@pi: port information structure
@tc: TC number
@rl_type: min or max
@bw: bandwidth in Kbps

This function saves the modified values of bandwidth settings for later
replay purpose (restore) after reset.
save TC node BW limit @pi : port information structure @tc : TC number @rl_type : min or max @bw : bandwidth in Kbps This function saves the modified values of bandwidth settings for later replay purpose ( restore ) after reset .
static enum ice_status
ice_sched_save_tc_node_bw(struct ice_port_info *pi, u8 tc,
			  enum ice_rl_type rl_type, u32 bw)
{
	if (tc >= ICE_MAX_TRAFFIC_CLASS)
		return ICE_ERR_PARAM;
	switch (rl_type) {
	case ICE_MIN_BW:
		ice_set_clear_cir_bw(&pi->tc_node_bw_t_info[tc], bw);
		break;
	case ICE_MAX_BW:
		ice_set_clear_eir_bw(&pi->tc_node_bw_t_info[tc], bw);
		break;
	case ICE_SHARED_BW:
		ice_set_clear_shared_bw(&pi->tc_node_bw_t_info[tc], bw);
		break;
	default:
		return ICE_ERR_PARAM;
	}
	return ICE_SUCCESS;
}
static enum ice_status ice_sched_save_tc_node_bw ( struct ice_port_info * pi , u8 tc , enum ice_rl_type rl_type , u32 bw ) { if ( tc >= ICE_MAX_TRAFFIC_CLASS ) return ICE_ERR_PARAM ; switch ( rl_type ) { case ICE_MIN_BW : ice_set_clear_cir_bw ( & pi -> tc_node_bw_t_info [ tc ] , bw ) ; break ; case ICE_MAX_BW : ice_set_clear_eir_bw ( & pi -> tc_node_bw_t_info [ tc ] , bw ) ; break ; case ICE_SHARED_BW : ice_set_clear_shared_bw ( & pi -> tc_node_bw_t_info [ tc ] , bw ) ; break ; default : return ICE_ERR_PARAM ; } return ICE_SUCCESS ; }
ice_sched_save_tc_node_bw - save TC node BW limit
 @pi: port information structure
 @tc: TC number
 @rl_type: min or max
 @bw: bandwidth in Kbps
ice_sched_save_tc_node_bw - save TC node BW limit @pi : port information structure @tc : TC number @rl_type : min or max @bw : bandwidth in Kbps