DPDK  23.07.0
rte_graph_worker.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(C) 2020 Marvell International Ltd.
3  * Copyright(C) 2023 Intel Corporation
4  */
5 
6 #ifndef _RTE_GRAPH_WORKER_H_
7 #define _RTE_GRAPH_WORKER_H_
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 #include "rte_graph_model_rtc.h"
15 
25 __rte_experimental
26 static inline void
27 rte_graph_walk(struct rte_graph *graph)
28 {
29 #if defined(RTE_GRAPH_MODEL_SELECT) && (RTE_GRAPH_MODEL_SELECT == RTE_GRAPH_MODEL_RTC)
30  rte_graph_walk_rtc(graph);
31 #elif defined(RTE_GRAPH_MODEL_SELECT) && (RTE_GRAPH_MODEL_SELECT == RTE_GRAPH_MODEL_MCORE_DISPATCH)
33 #else
34  switch (rte_graph_worker_model_no_check_get(graph)) {
37  break;
38  default:
39  rte_graph_walk_rtc(graph);
40  }
41 #endif
42 }
43 
44 #ifdef __cplusplus
45 }
46 #endif
47 
48 #endif /* _RTE_GRAPH_WORKER_H_ */
#define RTE_GRAPH_MODEL_MCORE_DISPATCH
static __rte_experimental void rte_graph_walk_mcore_dispatch(struct rte_graph *graph)
static __rte_experimental __rte_always_inline uint8_t rte_graph_worker_model_no_check_get(struct rte_graph *graph)