f-stack/dpdk/examples/pipeline/thread.h

28 lines
479 B
C
Raw Normal View History

2021-02-05 08:48:47 +00:00
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2020 Intel Corporation
*/
#ifndef _INCLUDE_THREAD_H_
#define _INCLUDE_THREAD_H_
#include <stdint.h>
2023-09-13 12:21:49 +00:00
#include <rte_swx_pipeline.h>
2021-02-05 08:48:47 +00:00
int
thread_pipeline_enable(uint32_t thread_id,
2023-09-13 12:21:49 +00:00
struct rte_swx_pipeline *p,
uint32_t timer_period_ms);
2021-02-05 08:48:47 +00:00
int
thread_pipeline_disable(uint32_t thread_id,
2023-09-13 12:21:49 +00:00
struct rte_swx_pipeline *p);
2021-02-05 08:48:47 +00:00
int
thread_init(void);
int
thread_main(void *arg);
#endif /* _INCLUDE_THREAD_H_ */