* Perform graph walk on the circular buffer and invoke the process function * of the nodes and collect the stats. * * @param graph * Graph pointer returned from rte_graph_lookup function. * * @see rte_graph_lookup() */
| 23 | * @see rte_graph_lookup() |
| 24 | */ |
| 25 | static inline void |
| 26 | rte_graph_walk(struct rte_graph *graph) |
| 27 | { |
| 28 | #if defined(RTE_GRAPH_MODEL_SELECT) && (RTE_GRAPH_MODEL_SELECT == RTE_GRAPH_MODEL_RTC) |
| 29 | rte_graph_walk_rtc(graph); |
| 30 | #elif defined(RTE_GRAPH_MODEL_SELECT) && (RTE_GRAPH_MODEL_SELECT == RTE_GRAPH_MODEL_MCORE_DISPATCH) |
| 31 | rte_graph_walk_mcore_dispatch(graph); |
| 32 | #else |
| 33 | switch (rte_graph_worker_model_no_check_get(graph)) { |
| 34 | case RTE_GRAPH_MODEL_MCORE_DISPATCH: |
| 35 | rte_graph_walk_mcore_dispatch(graph); |
| 36 | break; |
| 37 | default: |
| 38 | rte_graph_walk_rtc(graph); |
| 39 | } |
| 40 | #endif |
| 41 | } |
| 42 | |
| 43 | #ifdef __cplusplus |
| 44 | } |