MCPcopy Create free account
hub / github.com/F-Stack/f-stack / graph_walk_start

Function graph_walk_start

dpdk/app/graph/graph.c:326–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324}
325
326int
327graph_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
353void
354graph_stats_print(void)

Callers

nothing calls this directly

Calls 2

rte_lcore_idFunction · 0.85
rte_graph_walkFunction · 0.85

Tested by

no test coverage detected