src/dpdk/drivers/net/ice/base/ice_sched.c
static void ice_rm_dflt_leaf_node(struct ice_port_info *pi)
{
	struct ice_sched_node *node;

	node = pi->root;
	while (node) {
		if (!node->num_children)
			break;
		node = node->children[0];
	}
	if (node && node->info.data.elem_type == ICE_AQC_ELEM_TYPE_LEAF) {
		u32 teid = LE32_TO_CPU(node->info.node_teid);
		enum ice_status status;

		/* remove the default leaf node */
		status = ice_sched_remove_elems(pi->hw, node->parent, 1, &teid);
		if (!status)
			ice_free_sched_node(pi, node);
	}
}
/**
 * ice_rm_dflt_leaf_node - remove the default leaf node in the tree
 * @pi: port information structure
 *
 * This function removes the leaf node that was created by the FW
 * during initialization
 */
remove the default leaf node in the tree
@pi: port information structure

This function removes the leaf node that was created by the FW
during initialization
remove the default leaf node in the tree @pi : port information structure This function removes the leaf node that was created by the FW during initialization
static void ice_rm_dflt_leaf_node(struct ice_port_info *pi)
{
	struct ice_sched_node *node;
	node = pi->root;
	while (node) {
		if (!node->num_children)
			break;
		node = node->children[0];
	}
	if (node && node->info.data.elem_type == ICE_AQC_ELEM_TYPE_LEAF) {
		u32 teid = LE32_TO_CPU(node->info.node_teid);
		enum ice_status status;
		status = ice_sched_remove_elems(pi->hw, node->parent, 1, &teid);
		if (!status)
			ice_free_sched_node(pi, node);
	}
}
static void ice_rm_dflt_leaf_node ( struct ice_port_info * pi ) { struct ice_sched_node * node ; node = pi -> root ; while ( node ) { if ( ! node -> num_children ) break ; node = node -> children [ 0 ] ; } if ( node && node -> info . data . elem_type == ICE_AQC_ELEM_TYPE_LEAF ) { u32 teid = LE32_TO_CPU ( node -> info . node_teid ) ; enum ice_status status ; status = ice_sched_remove_elems ( pi -> hw , node -> parent , 1 , & teid ) ; if ( ! status ) ice_free_sched_node ( pi , node ) ; } }
ice_rm_dflt_leaf_node - remove the default leaf node in the tree
 @pi: port information structure
ice_rm_dflt_leaf_node - remove the default leaf node in the tree @pi : port information structure
/* remove the default leaf node */