| 324 | } |
| 325 | |
| 326 | int |
| 327 | graph_walk_start(void *conf) |
| 328 | { |
| 329 | struct lcore_conf *qconf; |
| 330 | struct rte_graph *graph; |
| 331 | uint32_t lcore_id; |
| 332 | |
| 333 | RTE_SET_USED(conf); |
| 334 | |
| 335 | lcore_id = rte_lcore_id(); |
| 336 | qconf = &lcore_conf[lcore_id]; |
| 337 | graph = qconf->graph; |
| 338 | |
| 339 | if (!graph) { |
| 340 | RTE_LOG(INFO, APP_GRAPH, "Lcore %u has nothing to do\n", lcore_id); |
| 341 | return 0; |
| 342 | } |
| 343 | |
| 344 | RTE_LOG(INFO, APP_GRAPH, "Entering main loop on lcore %u, graph %s(%p)\n", lcore_id, |
| 345 | qconf->name, graph); |
| 346 | |
| 347 | while (likely(!force_quit)) |
| 348 | rte_graph_walk(graph); |
| 349 | |
| 350 | return 0; |
| 351 | } |
| 352 | |
| 353 | void |
| 354 | graph_stats_print(void) |
nothing calls this directly
no test coverage detected