src/dpdk/drivers/net/ice/base/ice_sched.c
static enum ice_status
ice_sched_validate_srl_node(struct ice_sched_node *node, u8 sel_layer)
{
	/* SRL profiles are not available on all layers. Check if the
	 * SRL profile can be applied to a node above or below the
	 * requested node. SRL configuration is possible only if the
	 * selected layer's node has single child.
	 */
	if (sel_layer == node->tx_sched_layer ||
	    ((sel_layer == node->tx_sched_layer + 1) &&
	    node->num_children == 1) ||
	    ((sel_layer == node->tx_sched_layer - 1) &&
	    (node->parent && node->parent->num_children == 1)))
		return ICE_SUCCESS;

	return ICE_ERR_CFG;
}
/**
 * ice_sched_validate_srl_node - Check node for SRL applicability
 * @node: sched node to configure
 * @sel_layer: selected SRL layer
 *
 * This function checks if the SRL can be applied to a selceted layer node on
 * behalf of the requested node (first argument). This function needs to be
 * called with scheduler lock held.
 */
Check node for SRL applicability
@node: sched node to configure
@sel_layer: selected SRL layer

This function checks if the SRL can be applied to a selceted layer node on
behalf of the requested node (first argument). This function needs to be
called with scheduler lock held.
Check node for SRL applicability @node : sched node to configure @sel_layer : selected SRL layer This function checks if the SRL can be applied to a selceted layer node on behalf of the requested node ( first argument ) . This function needs to be called with scheduler lock held .
static enum ice_status
ice_sched_validate_srl_node(struct ice_sched_node *node, u8 sel_layer)
{
	if (sel_layer == node->tx_sched_layer ||
	    ((sel_layer == node->tx_sched_layer + 1) &&
	    node->num_children == 1) ||
	    ((sel_layer == node->tx_sched_layer - 1) &&
	    (node->parent && node->parent->num_children == 1)))
		return ICE_SUCCESS;
	return ICE_ERR_CFG;
}
static enum ice_status ice_sched_validate_srl_node ( struct ice_sched_node * node , u8 sel_layer ) { if ( sel_layer == node -> tx_sched_layer || ( ( sel_layer == node -> tx_sched_layer + 1 ) && node -> num_children == 1 ) || ( ( sel_layer == node -> tx_sched_layer - 1 ) && ( node -> parent && node -> parent -> num_children == 1 ) ) ) return ICE_SUCCESS ; return ICE_ERR_CFG ; }
ice_sched_validate_srl_node - Check node for SRL applicability
 @node: sched node to configure
 @sel_layer: selected SRL layer
ice_sched_validate_srl_node - Check node for SRL applicability @node : sched node to configure @sel_layer : selected SRL layer
/* SRL profiles are not available on all layers. Check if the
	 * SRL profile can be applied to a node above or below the
	 * requested node. SRL configuration is possible only if the
	 * selected layer's node has single child.
	 */