src/dpdk/drivers/net/ice/base/ice_sched.c
struct ice_sched_node *ice_sched_get_node(struct ice_port_info *pi, u32 teid)
{
	struct ice_sched_node *node;

	if (!pi)
		return NULL;

	/* Find the node starting from root */
	ice_acquire_lock(&pi->sched_lock);
	node = ice_sched_find_node_by_teid(pi->root, teid);
	ice_release_lock(&pi->sched_lock);

	if (!node)
		ice_debug(pi->hw, ICE_DBG_SCHED, "Node not found for teid=0x%x\n", teid);

	return node;
}
/**
 * ice_sched_get_node - Get the struct ice_sched_node for given TEID
 * @pi: port information structure
 * @teid: Scheduler node TEID
 *
 * This function retrieves the ice_sched_node struct for given TEID from
 * the SW DB and returns it to the caller.
 */
Get the struct ice_sched_node for given TEID
@pi: port information structure
@teid: Scheduler node TEID

This function retrieves the ice_sched_node struct for given TEID from
the SW DB and returns it to the caller.
Get the struct ice_sched_node for given TEID @pi : port information structure @teid : Scheduler node TEID This function retrieves the ice_sched_node struct for given TEID from the SW DB and returns it to the caller .
struct ice_sched_node *ice_sched_get_node(struct ice_port_info *pi, u32 teid)
{
	struct ice_sched_node *node;
	if (!pi)
		return NULL;
	ice_acquire_lock(&pi->sched_lock);
	node = ice_sched_find_node_by_teid(pi->root, teid);
	ice_release_lock(&pi->sched_lock);
	if (!node)
		ice_debug(pi->hw, ICE_DBG_SCHED, "Node not found for teid=0x%x\n", teid);
	return node;
}
struct ice_sched_node * ice_sched_get_node ( struct ice_port_info * pi , u32 teid ) { struct ice_sched_node * node ; if ( ! pi ) return NULL ; ice_acquire_lock ( & pi -> sched_lock ) ; node = ice_sched_find_node_by_teid ( pi -> root , teid ) ; ice_release_lock ( & pi -> sched_lock ) ; if ( ! node ) ice_debug ( pi -> hw , ICE_DBG_SCHED , " \n " , teid ) ; return node ; }
ice_sched_get_node - Get the struct ice_sched_node for given TEID
 @pi: port information structure
 @teid: Scheduler node TEID
ice_sched_get_node - Get the struct ice_sched_node for given TEID @pi : port information structure @teid : Scheduler node TEID
/* Find the node starting from root */