DPDK
25.11.0
Toggle main menu visibility
Loading...
Searching...
No Matches
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
#include "rte_graph_model_rtc.h"
10
#include "
rte_graph_model_mcore_dispatch.h
"
11
12
#ifdef __cplusplus
13
extern
"C"
{
14
#endif
15
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
}
45
#endif
46
47
#endif
/* _RTE_GRAPH_WORKER_H_ */
rte_graph_model_mcore_dispatch.h
rte_graph_walk_mcore_dispatch
static void rte_graph_walk_mcore_dispatch(struct rte_graph *graph)
Definition
rte_graph_model_mcore_dispatch.h:89
rte_graph_worker_model_no_check_get
static __rte_always_inline uint8_t rte_graph_worker_model_no_check_get(struct rte_graph *graph)
Definition
rte_graph_worker_common.h:590
RTE_GRAPH_MODEL_MCORE_DISPATCH
#define RTE_GRAPH_MODEL_MCORE_DISPATCH
Definition
rte_graph_worker_common.h:34
lib
graph
rte_graph_worker.h
Generated by
1.17.0