| 626 | } |
| 627 | |
| 628 | char * |
| 629 | rte_graph_id_to_name(rte_graph_t id) |
| 630 | { |
| 631 | struct graph *graph; |
| 632 | |
| 633 | if (graph_from_id(id) == NULL) |
| 634 | goto fail; |
| 635 | STAILQ_FOREACH(graph, &graph_list, next) |
| 636 | if (graph->id == id) |
| 637 | return graph->name; |
| 638 | |
| 639 | fail: |
| 640 | return NULL; |
| 641 | } |
| 642 | |
| 643 | struct rte_node * |
| 644 | rte_graph_node_get(rte_graph_t gid, uint32_t nid) |