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

Function graph_node_nexts_populate

dpdk/lib/graph/graph_populate.c:137–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137static int
138graph_node_nexts_populate(struct graph *_graph)
139{
140 rte_node_t count, val;
141 rte_graph_off_t off;
142 struct rte_node *node;
143 const struct rte_graph *graph = _graph->graph;
144 const char *name;
145
146 rte_graph_foreach_node(count, off, graph, node) {
147 for (val = 0; val < node->nb_edges; val++) {
148 name = (const char *)node->nodes[val];
149 node->nodes[val] = graph_node_name_to_ptr(graph, name);
150 if (node->nodes[val] == NULL)
151 SET_ERR_JMP(EINVAL, fail, "%s not found", name);
152 }
153 }
154
155 return 0;
156fail:
157 return -rte_errno;
158}
159
160static int
161graph_src_nodes_populate(struct graph *_graph)

Callers 1

graph_fp_mem_populateFunction · 0.85

Calls 1

graph_node_name_to_ptrFunction · 0.85

Tested by

no test coverage detected