xref: /dpdk/examples/pipeline/thread.h (revision 8f1d23ece06adff5eae9f1b4365bdbbd3abee2b2)
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2020 Intel Corporation
3  */
4 
5 #ifndef _INCLUDE_THREAD_H_
6 #define _INCLUDE_THREAD_H_
7 
8 #include <stdint.h>
9 
10 #include <rte_swx_pipeline.h>
11 
12 int
13 thread_pipeline_enable(uint32_t thread_id,
14 		       struct rte_swx_pipeline *p,
15 		       uint32_t timer_period_ms);
16 
17 int
18 thread_pipeline_disable(uint32_t thread_id,
19 			struct rte_swx_pipeline *p);
20 
21 int
22 thread_init(void);
23 
24 int
25 thread_main(void *arg);
26 
27 #endif /* _INCLUDE_THREAD_H_ */
28