| 107 | } |
| 108 | |
| 109 | struct rte_node * |
| 110 | graph_node_id_to_ptr(const struct rte_graph *graph, rte_node_t id) |
| 111 | { |
| 112 | rte_node_t count; |
| 113 | rte_graph_off_t off; |
| 114 | struct rte_node *node; |
| 115 | |
| 116 | rte_graph_foreach_node(count, off, graph, node) |
| 117 | if (unlikely(node->id == id)) |
| 118 | return node; |
| 119 | |
| 120 | return NULL; |
| 121 | } |
| 122 | |
| 123 | struct rte_node * |
| 124 | graph_node_name_to_ptr(const struct rte_graph *graph, const char *name) |
no outgoing calls
no test coverage detected