src/dpdk/drivers/net/ice/base/ice_sched.c
static enum ice_status
ice_sched_save_vsi_prio(struct ice_port_info *pi, u16 vsi_handle, u8 tc,
			u8 prio)
{
	struct ice_vsi_ctx *vsi_ctx;

	if (!ice_is_vsi_valid(pi->hw, vsi_handle))
		return ICE_ERR_PARAM;
	vsi_ctx = ice_get_vsi_ctx(pi->hw, vsi_handle);
	if (!vsi_ctx)
		return ICE_ERR_PARAM;
	if (tc >= ICE_MAX_TRAFFIC_CLASS)
		return ICE_ERR_PARAM;
	ice_set_clear_prio(&vsi_ctx->sched.bw_t_info[tc], prio);
	return ICE_SUCCESS;
}
/**
 * ice_sched_save_vsi_prio - save VSI node's priority information
 * @pi: port information structure
 * @vsi_handle: Software VSI handle
 * @tc: traffic class
 * @prio: priority to save
 *
 * Save priority information of VSI type node for post replay use.
 */
save VSI node's priority information
@pi: port information structure
@vsi_handle: Software VSI handle
@tc: traffic class
@prio: priority to save

Save priority information of VSI type node for post replay use.
save VSI node ' s priority information @pi : port information structure @vsi_handle : Software VSI handle @tc : traffic class @prio : priority to save Save priority information of VSI type node for post replay use .
static enum ice_status
ice_sched_save_vsi_prio(struct ice_port_info *pi, u16 vsi_handle, u8 tc,
			u8 prio)
{
	struct ice_vsi_ctx *vsi_ctx;
	if (!ice_is_vsi_valid(pi->hw, vsi_handle))
		return ICE_ERR_PARAM;
	vsi_ctx = ice_get_vsi_ctx(pi->hw, vsi_handle);
	if (!vsi_ctx)
		return ICE_ERR_PARAM;
	if (tc >= ICE_MAX_TRAFFIC_CLASS)
		return ICE_ERR_PARAM;
	ice_set_clear_prio(&vsi_ctx->sched.bw_t_info[tc], prio);
	return ICE_SUCCESS;
}
static enum ice_status ice_sched_save_vsi_prio ( struct ice_port_info * pi , u16 vsi_handle , u8 tc , u8 prio ) { struct ice_vsi_ctx * vsi_ctx ; if ( ! ice_is_vsi_valid ( pi -> hw , vsi_handle ) ) return ICE_ERR_PARAM ; vsi_ctx = ice_get_vsi_ctx ( pi -> hw , vsi_handle ) ; if ( ! vsi_ctx ) return ICE_ERR_PARAM ; if ( tc >= ICE_MAX_TRAFFIC_CLASS ) return ICE_ERR_PARAM ; ice_set_clear_prio ( & vsi_ctx -> sched . bw_t_info [ tc ] , prio ) ; return ICE_SUCCESS ; }
ice_sched_save_vsi_prio - save VSI node's priority information
 @pi: port information structure
 @vsi_handle: Software VSI handle
 @tc: traffic class
 @prio: priority to save
ice_sched_save_vsi_prio - save VSI node ' s priority information @pi : port information structure @vsi_handle : Software VSI handle @tc : traffic class @prio : priority to save