Cristian Dumitrescu b9559f943c examples/pipeline: use pipeline name query API
Convert the CLI commands to use the pipeline name query API and remove
the linked list of pipeline objects previously maintained by the
application.

Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
Signed-off-by: Kamalakannan R <kamalakannan.r@intel.com>
2022-09-15 17:51:34 +02:00

28 lines
479 B
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2020 Intel Corporation
*/
#ifndef _INCLUDE_THREAD_H_
#define _INCLUDE_THREAD_H_
#include <stdint.h>
#include <rte_swx_pipeline.h>
int
thread_pipeline_enable(uint32_t thread_id,
struct rte_swx_pipeline *p,
uint32_t timer_period_ms);
int
thread_pipeline_disable(uint32_t thread_id,
struct rte_swx_pipeline *p);
int
thread_init(void);
int
thread_main(void *arg);
#endif /* _INCLUDE_THREAD_H_ */