| 199 | } |
| 200 | |
| 201 | int |
| 202 | graph_fp_mem_create(struct graph *graph) |
| 203 | { |
| 204 | const struct rte_memzone *mz; |
| 205 | size_t sz; |
| 206 | |
| 207 | sz = graph_fp_mem_calc_size(graph); |
| 208 | mz = rte_memzone_reserve(graph->name, sz, graph->socket, 0); |
| 209 | if (mz == NULL) |
| 210 | SET_ERR_JMP(ENOMEM, fail, "Memzone %s reserve failed", |
| 211 | graph->name); |
| 212 | |
| 213 | graph->graph = mz->addr; |
| 214 | graph->mz = mz; |
| 215 | |
| 216 | return graph_fp_mem_populate(graph); |
| 217 | fail: |
| 218 | return -rte_errno; |
| 219 | } |
| 220 | |
| 221 | static void |
| 222 | graph_nodes_mem_destroy(struct rte_graph *graph) |
no test coverage detected