MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rte_graph_node_get

Function rte_graph_node_get

dpdk/lib/graph/graph.c:643–664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

641}
642
643struct rte_node *
644rte_graph_node_get(rte_graph_t gid, uint32_t nid)
645{
646 struct rte_node *node;
647 struct graph *graph;
648 rte_graph_off_t off;
649 rte_node_t count;
650
651 if (graph_from_id(gid) == NULL)
652 goto fail;
653 STAILQ_FOREACH(graph, &graph_list, next)
654 if (graph->id == gid) {
655 rte_graph_foreach_node(count, off, graph->graph,
656 node) {
657 if (node->id == nid)
658 return node;
659 }
660 break;
661 }
662fail:
663 return NULL;
664}
665
666struct rte_node *
667rte_graph_node_get_by_name(const char *graph_name, const char *node_name)

Calls 1

graph_from_idFunction · 0.85