src/dpdk/drivers/net/ice/base/ice_sched.c
enum ice_status
ice_aq_query_node_to_root(struct ice_hw *hw, u32 node_teid,
			  struct ice_aqc_txsched_elem_data *buf, u16 buf_size,
			  struct ice_sq_cd *cd)
{
	struct ice_aqc_query_node_to_root *cmd;
	struct ice_aq_desc desc;

	cmd = &desc.params.query_node_to_root;
	ice_fill_dflt_direct_cmd_desc(&desc, ice_aqc_opc_query_node_to_root);
	cmd->teid = CPU_TO_LE32(node_teid);
	return ice_aq_send_cmd(hw, &desc, buf, buf_size, cd);
}
/**
 * ice_aq_query_node_to_root - retrieve the tree topology for a given node TEID
 * @hw: pointer to the HW struct
 * @node_teid: node TEID
 * @buf: pointer to buffer
 * @buf_size: buffer size in bytes
 * @cd: pointer to command details structure or NULL
 *
 * This function retrieves the tree topology from the firmware for a given
 * node TEID to the root node.
 */


This function retrieves the tree topology from the firmware for a given
node TEID to the root node.
This function retrieves the tree topology from the firmware for a given node TEID to the root node .
enum ice_status
ice_aq_query_node_to_root(struct ice_hw *hw, u32 node_teid,
			  struct ice_aqc_txsched_elem_data *buf, u16 buf_size,
			  struct ice_sq_cd *cd)
{
	struct ice_aqc_query_node_to_root *cmd;
	struct ice_aq_desc desc;
	cmd = &desc.params.query_node_to_root;
	ice_fill_dflt_direct_cmd_desc(&desc, ice_aqc_opc_query_node_to_root);
	cmd->teid = CPU_TO_LE32(node_teid);
	return ice_aq_send_cmd(hw, &desc, buf, buf_size, cd);
}
enum ice_status ice_aq_query_node_to_root ( struct ice_hw * hw , u32 node_teid , struct ice_aqc_txsched_elem_data * buf , u16 buf_size , struct ice_sq_cd * cd ) { struct ice_aqc_query_node_to_root * cmd ; struct ice_aq_desc desc ; cmd = & desc . params . query_node_to_root ; ice_fill_dflt_direct_cmd_desc ( & desc , ice_aqc_opc_query_node_to_root ) ; cmd -> teid = CPU_TO_LE32 ( node_teid ) ; return ice_aq_send_cmd ( hw , & desc , buf , buf_size , cd ) ; }
ice_aq_query_node_to_root - retrieve the tree topology for a given node TEID
 @hw: pointer to the HW struct
 @node_teid: node TEID
 @buf: pointer to buffer
 @buf_size: buffer size in bytes
 @cd: pointer to command details structure or NULL
ice_aq_query_node_to_root - retrieve the tree topology for a given node TEID @hw : pointer to the HW struct @node_teid : node TEID @buf : pointer to buffer @buf_size : buffer size in bytes @cd : pointer to command details structure or NULL