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

Function graph_node_init

dpdk/lib/graph/graph.c:226–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226static int
227graph_node_init(struct graph *graph)
228{
229 struct graph_node *graph_node;
230 const char *name;
231 int rc;
232
233 STAILQ_FOREACH(graph_node, &graph->node_list, next) {
234 if (graph_node->node->init) {
235 name = graph_node->node->name;
236 rc = graph_node->node->init(
237 graph->graph,
238 graph_node_name_to_ptr(graph->graph, name));
239 if (rc)
240 SET_ERR_JMP(rc, err, "Node %s init() failed",
241 name);
242 }
243 }
244
245 return 0;
246err:
247 return -rte_errno;
248}
249
250static void
251graph_node_fini(struct graph *graph)

Callers 2

rte_graph_createFunction · 0.85
graph_cloneFunction · 0.85

Calls 1

graph_node_name_to_ptrFunction · 0.85

Tested by

no test coverage detected