src/dpdk/drivers/net/ice/base/ice_sched.c
static enum ice_status
ice_sched_save_tc_node_bw_alloc(struct ice_port_info *pi, u8 tc,
				enum ice_rl_type rl_type, u16 bw_alloc)
{
	if (tc >= ICE_MAX_TRAFFIC_CLASS)
		return ICE_ERR_PARAM;
	switch (rl_type) {
	case ICE_MIN_BW:
		ice_set_clear_cir_bw_alloc(&pi->tc_node_bw_t_info[tc],
					   bw_alloc);
		break;
	case ICE_MAX_BW:
		ice_set_clear_eir_bw_alloc(&pi->tc_node_bw_t_info[tc],
					   bw_alloc);
		break;
	default:
		return ICE_ERR_PARAM;
	}
	return ICE_SUCCESS;
}
/**
 * ice_sched_save_tc_node_bw_alloc - save TC node's BW alloc information
 * @pi: port information structure
 * @tc: traffic class
 * @rl_type: rate limit type min or max
 * @bw_alloc: Bandwidth allocation information
 *
 * Save BW alloc information of VSI type node for post replay use.
 */
save TC node's BW alloc information
@pi: port information structure
@tc: traffic class
@rl_type: rate limit type min or max
@bw_alloc: Bandwidth allocation information

Save BW alloc information of VSI type node for post replay use.
save TC node ' s BW alloc information @pi : port information structure @tc : traffic class @rl_type : rate limit type min or max @bw_alloc : Bandwidth allocation information Save BW alloc information of VSI type node for post replay use .
static enum ice_status
ice_sched_save_tc_node_bw_alloc(struct ice_port_info *pi, u8 tc,
				enum ice_rl_type rl_type, u16 bw_alloc)
{
	if (tc >= ICE_MAX_TRAFFIC_CLASS)
		return ICE_ERR_PARAM;
	switch (rl_type) {
	case ICE_MIN_BW:
		ice_set_clear_cir_bw_alloc(&pi->tc_node_bw_t_info[tc],
					   bw_alloc);
		break;
	case ICE_MAX_BW:
		ice_set_clear_eir_bw_alloc(&pi->tc_node_bw_t_info[tc],
					   bw_alloc);
		break;
	default:
		return ICE_ERR_PARAM;
	}
	return ICE_SUCCESS;
}
static enum ice_status ice_sched_save_tc_node_bw_alloc ( struct ice_port_info * pi , u8 tc , enum ice_rl_type rl_type , u16 bw_alloc ) { if ( tc >= ICE_MAX_TRAFFIC_CLASS ) return ICE_ERR_PARAM ; switch ( rl_type ) { case ICE_MIN_BW : ice_set_clear_cir_bw_alloc ( & pi -> tc_node_bw_t_info [ tc ] , bw_alloc ) ; break ; case ICE_MAX_BW : ice_set_clear_eir_bw_alloc ( & pi -> tc_node_bw_t_info [ tc ] , bw_alloc ) ; break ; default : return ICE_ERR_PARAM ; } return ICE_SUCCESS ; }
ice_sched_save_tc_node_bw_alloc - save TC node's BW alloc information
 @pi: port information structure
 @tc: traffic class
 @rl_type: rate limit type min or max
 @bw_alloc: Bandwidth allocation information
ice_sched_save_tc_node_bw_alloc - save TC node ' s BW alloc information @pi : port information structure @tc : traffic class @rl_type : rate limit type min or max @bw_alloc : Bandwidth allocation information