src/dpdk/drivers/net/ice/base/ice_sched.c
struct ice_sched_node *
ice_sched_get_vsi_node(struct ice_port_info *pi, struct ice_sched_node *tc_node,
		       u16 vsi_handle)
{
	struct ice_sched_node *node;
	u8 vsi_layer;

	vsi_layer = ice_sched_get_vsi_layer(pi->hw);
	node = ice_sched_get_first_node(pi, tc_node, vsi_layer);

	/* Check whether it already exists */
	while (node) {
		if (node->vsi_handle == vsi_handle)
			return node;
		node = node->sibling;
	}

	return node;
}
/**
 * ice_sched_get_vsi_node - Get a VSI node based on VSI ID
 * @pi: pointer to the port information structure
 * @tc_node: pointer to the TC node
 * @vsi_handle: software VSI handle
 *
 * This function retrieves a VSI node for a given VSI ID from a given
 * TC branch
 */
Get a VSI node based on VSI ID
@pi: pointer to the port information structure
@tc_node: pointer to the TC node
@vsi_handle: software VSI handle

This function retrieves a VSI node for a given VSI ID from a given
TC branch
Get a VSI node based on VSI ID @pi : pointer to the port information structure @tc_node : pointer to the TC node @vsi_handle : software VSI handle This function retrieves a VSI node for a given VSI ID from a given TC branch
struct ice_sched_node *
ice_sched_get_vsi_node(struct ice_port_info *pi, struct ice_sched_node *tc_node,
		       u16 vsi_handle)
{
	struct ice_sched_node *node;
	u8 vsi_layer;
	vsi_layer = ice_sched_get_vsi_layer(pi->hw);
	node = ice_sched_get_first_node(pi, tc_node, vsi_layer);
	while (node) {
		if (node->vsi_handle == vsi_handle)
			return node;
		node = node->sibling;
	}
	return node;
}
struct ice_sched_node * ice_sched_get_vsi_node ( struct ice_port_info * pi , struct ice_sched_node * tc_node , u16 vsi_handle ) { struct ice_sched_node * node ; u8 vsi_layer ; vsi_layer = ice_sched_get_vsi_layer ( pi -> hw ) ; node = ice_sched_get_first_node ( pi , tc_node , vsi_layer ) ; while ( node ) { if ( node -> vsi_handle == vsi_handle ) return node ; node = node -> sibling ; } return node ; }
ice_sched_get_vsi_node - Get a VSI node based on VSI ID
 @pi: pointer to the port information structure
 @tc_node: pointer to the TC node
 @vsi_handle: software VSI handle
ice_sched_get_vsi_node - Get a VSI node based on VSI ID @pi : pointer to the port information structure @tc_node : pointer to the TC node @vsi_handle : software VSI handle
/* Check whether it already exists */