src/dpdk/drivers/net/ice/base/ice_sched.c
static bool ice_sched_check_node(struct ice_hw *hw, struct ice_sched_node *node)
{
	struct ice_aqc_txsched_elem_data buf;
	enum ice_status status;
	u32 node_teid;

	node_teid = LE32_TO_CPU(node->info.node_teid);
	status = ice_sched_query_elem(hw, node_teid, &buf);
	if (status != ICE_SUCCESS)
		return false;

	if (memcmp(&buf, &node->info, sizeof(buf))) {
		ice_debug(hw, ICE_DBG_SCHED, "Node mismatch for teid=0x%x\n",
			  node_teid);
		return false;
	}

	return true;
}
/**
 * ice_sched_check_node - Compare node parameters between SW DB and HW DB
 * @hw: pointer to the HW struct
 * @node: pointer to the ice_sched_node struct
 *
 * This function queries and compares the HW element with SW DB node parameters
 */
Compare node parameters between SW DB and HW DB
@hw: pointer to the HW struct
@node: pointer to the ice_sched_node struct

This function queries and compares the HW element with SW DB node parameters
Compare node parameters between SW DB and HW DB @hw : pointer to the HW struct @node : pointer to the ice_sched_node struct This function queries and compares the HW element with SW DB node parameters
static bool ice_sched_check_node(struct ice_hw *hw, struct ice_sched_node *node)
{
	struct ice_aqc_txsched_elem_data buf;
	enum ice_status status;
	u32 node_teid;
	node_teid = LE32_TO_CPU(node->info.node_teid);
	status = ice_sched_query_elem(hw, node_teid, &buf);
	if (status != ICE_SUCCESS)
		return false;
	if (memcmp(&buf, &node->info, sizeof(buf))) {
		ice_debug(hw, ICE_DBG_SCHED, "Node mismatch for teid=0x%x\n",
			  node_teid);
		return false;
	}
	return true;
}
static bool ice_sched_check_node ( struct ice_hw * hw , struct ice_sched_node * node ) { struct ice_aqc_txsched_elem_data buf ; enum ice_status status ; u32 node_teid ; node_teid = LE32_TO_CPU ( node -> info . node_teid ) ; status = ice_sched_query_elem ( hw , node_teid , & buf ) ; if ( status != ICE_SUCCESS ) return false ; if ( memcmp ( & buf , & node -> info , sizeof ( buf ) ) ) { ice_debug ( hw , ICE_DBG_SCHED , " \n " , node_teid ) ; return false ; } return true ; }
ice_sched_check_node - Compare node parameters between SW DB and HW DB
 @hw: pointer to the HW struct
 @node: pointer to the ice_sched_node struct
ice_sched_check_node - Compare node parameters between SW DB and HW DB @hw : pointer to the HW struct @node : pointer to the ice_sched_node struct