| 224 | } |
| 225 | |
| 226 | static int |
| 227 | graph_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; |
| 246 | err: |
| 247 | return -rte_errno; |
| 248 | } |
| 249 | |
| 250 | static void |
| 251 | graph_node_fini(struct graph *graph) |
no test coverage detected