src/dpdk/drivers/net/ice/base/ice_sched.c
enum ice_status
ice_sched_set_agg_bw_shared_lmt_per_tc(struct ice_port_info *pi, u32 agg_id,
				       u8 tc, u32 min_bw, u32 max_bw,
				       u32 shared_bw)
{
	enum ice_status status;

	if (!pi)
		return ICE_ERR_PARAM;
	ice_acquire_lock(&pi->sched_lock);
	status = ice_sched_validate_agg_id(pi, agg_id);
	if (status)
		goto exit_agg_bw_shared_lmt_per_tc;

	status = ice_sched_set_agg_node_srl_per_tc(pi, agg_id, tc, min_bw,
						   max_bw, shared_bw);

exit_agg_bw_shared_lmt_per_tc:
	ice_release_lock(&pi->sched_lock);
	return status;
}
/**
 * ice_sched_set_agg_bw_shared_lmt_per_tc - set aggregator BW shared lmt per tc
 * @pi: port information structure
 * @agg_id: aggregator ID
 * @tc: traffic class
 * @min_bw: minimum bandwidth in Kbps
 * @max_bw: maximum bandwidth in Kbps
 * @shared_bw: shared bandwidth in Kbps
 *
 * This function configures the shared rate limiter(SRL) of aggregator type
 * node for a given traffic class for aggregator matching agg_id. When BW
 * value of ICE_SCHED_DFLT_BW is passed, it removes SRL from the node.
 */


This function configures the shared rate limiter(SRL) of aggregator type
node for a given traffic class for aggregator matching agg_id. When BW
value of ICE_SCHED_DFLT_BW is passed, it removes SRL from the node.
This function configures the shared rate limiter ( SRL ) of aggregator type node for a given traffic class for aggregator matching agg_id . When BW value of ICE_SCHED_DFLT_BW is passed it removes SRL from the node .
enum ice_status
ice_sched_set_agg_bw_shared_lmt_per_tc(struct ice_port_info *pi, u32 agg_id,
				       u8 tc, u32 min_bw, u32 max_bw,
				       u32 shared_bw)
{
	enum ice_status status;
	if (!pi)
		return ICE_ERR_PARAM;
	ice_acquire_lock(&pi->sched_lock);
	status = ice_sched_validate_agg_id(pi, agg_id);
	if (status)
		goto exit_agg_bw_shared_lmt_per_tc;
	status = ice_sched_set_agg_node_srl_per_tc(pi, agg_id, tc, min_bw,
						   max_bw, shared_bw);
exit_agg_bw_shared_lmt_per_tc:
	ice_release_lock(&pi->sched_lock);
	return status;
}
enum ice_status ice_sched_set_agg_bw_shared_lmt_per_tc ( struct ice_port_info * pi , u32 agg_id , u8 tc , u32 min_bw , u32 max_bw , u32 shared_bw ) { enum ice_status status ; if ( ! pi ) return ICE_ERR_PARAM ; ice_acquire_lock ( & pi -> sched_lock ) ; status = ice_sched_validate_agg_id ( pi , agg_id ) ; if ( status ) goto exit_agg_bw_shared_lmt_per_tc ; status = ice_sched_set_agg_node_srl_per_tc ( pi , agg_id , tc , min_bw , max_bw , shared_bw ) ; exit_agg_bw_shared_lmt_per_tc : ice_release_lock ( & pi -> sched_lock ) ; return status ; }
ice_sched_set_agg_bw_shared_lmt_per_tc - set aggregator BW shared lmt per tc
 @pi: port information structure
 @agg_id: aggregator ID
 @tc: traffic class
 @min_bw: minimum bandwidth in Kbps
 @max_bw: maximum bandwidth in Kbps
 @shared_bw: shared bandwidth in Kbps
ice_sched_set_agg_bw_shared_lmt_per_tc - set aggregator BW shared lmt per tc @pi : port information structure @agg_id : aggregator ID @tc : traffic class @min_bw : minimum bandwidth in Kbps @max_bw : maximum bandwidth in Kbps @shared_bw : shared bandwidth in Kbps