| 599 | } |
| 600 | |
| 601 | rte_graph_t |
| 602 | rte_graph_clone(rte_graph_t id, const char *name, struct rte_graph_param *prm) |
| 603 | { |
| 604 | struct graph *graph; |
| 605 | |
| 606 | if (graph_from_id(id) == NULL) |
| 607 | goto fail; |
| 608 | STAILQ_FOREACH(graph, &graph_list, next) |
| 609 | if (graph->id == id) |
| 610 | return graph_clone(graph, name, prm); |
| 611 | |
| 612 | fail: |
| 613 | return RTE_GRAPH_ID_INVALID; |
| 614 | } |
| 615 | |
| 616 | rte_graph_t |
| 617 | rte_graph_from_name(const char *name) |