src/dpdk/drivers/net/ice/base/ice_sched.c
enum ice_status
ice_sched_cfg_sibl_node_prio(struct ice_port_info *pi,
			     struct ice_sched_node *node, u8 priority)
{
	struct ice_aqc_txsched_elem_data buf;
	struct ice_aqc_txsched_elem *data;
	struct ice_hw *hw = pi->hw;
	enum ice_status status;

	if (!hw)
		return ICE_ERR_PARAM;
	buf = node->info;
	data = &buf.data;
	data->valid_sections |= ICE_AQC_ELEM_VALID_GENERIC;
	priority = (priority << ICE_AQC_ELEM_GENERIC_PRIO_S) &
		   ICE_AQC_ELEM_GENERIC_PRIO_M;
	data->generic &= ~ICE_AQC_ELEM_GENERIC_PRIO_M;
	data->generic |= priority;

	/* Configure element */
	status = ice_sched_update_elem(hw, node, &buf);
	return status;
}
/**
 * ice_sched_cfg_sibl_node_prio - configure node sibling priority
 * @pi: port information structure
 * @node: sched node to configure
 * @priority: sibling priority
 *
 * This function configures node element's sibling priority only. This
 * function needs to be called with scheduler lock held.
 */
configure node sibling priority
@pi: port information structure
@node: sched node to configure
@priority: sibling priority

This function configures node element's sibling priority only. This
function needs to be called with scheduler lock held.
configure node sibling priority @pi : port information structure @node : sched node to configure @priority : sibling priority This function configures node element ' s sibling priority only . This function needs to be called with scheduler lock held .
enum ice_status
ice_sched_cfg_sibl_node_prio(struct ice_port_info *pi,
			     struct ice_sched_node *node, u8 priority)
{
	struct ice_aqc_txsched_elem_data buf;
	struct ice_aqc_txsched_elem *data;
	struct ice_hw *hw = pi->hw;
	enum ice_status status;
	if (!hw)
		return ICE_ERR_PARAM;
	buf = node->info;
	data = &buf.data;
	data->valid_sections |= ICE_AQC_ELEM_VALID_GENERIC;
	priority = (priority << ICE_AQC_ELEM_GENERIC_PRIO_S) &
		   ICE_AQC_ELEM_GENERIC_PRIO_M;
	data->generic &= ~ICE_AQC_ELEM_GENERIC_PRIO_M;
	data->generic |= priority;
	status = ice_sched_update_elem(hw, node, &buf);
	return status;
}
enum ice_status ice_sched_cfg_sibl_node_prio ( struct ice_port_info * pi , struct ice_sched_node * node , u8 priority ) { struct ice_aqc_txsched_elem_data buf ; struct ice_aqc_txsched_elem * data ; struct ice_hw * hw = pi -> hw ; enum ice_status status ; if ( ! hw ) return ICE_ERR_PARAM ; buf = node -> info ; data = & buf . data ; data -> valid_sections |= ICE_AQC_ELEM_VALID_GENERIC ; priority = ( priority << ICE_AQC_ELEM_GENERIC_PRIO_S ) & ICE_AQC_ELEM_GENERIC_PRIO_M ; data -> generic &= ~ ICE_AQC_ELEM_GENERIC_PRIO_M ; data -> generic |= priority ; status = ice_sched_update_elem ( hw , node , & buf ) ; return status ; }
ice_sched_cfg_sibl_node_prio - configure node sibling priority
 @pi: port information structure
 @node: sched node to configure
 @priority: sibling priority
ice_sched_cfg_sibl_node_prio - configure node sibling priority @pi : port information structure @node : sched node to configure @priority : sibling priority
/* Configure element */