File: thread.h

package info (click to toggle)
dpdk 25.11-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 127,892 kB
  • sloc: ansic: 2,358,479; python: 16,426; sh: 4,474; makefile: 1,713; awk: 70
file content (39 lines) | stat: -rw-r--r-- 626 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* 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>

/**
 * Control plane (CP) thread.
 */
int
thread_init(void);

int
pipeline_enable(struct rte_swx_pipeline *p, uint32_t thread_id);

void
pipeline_disable(struct rte_swx_pipeline *p);

typedef void
(*block_run_f)(void *block);

int
block_enable(block_run_f block_func, void *block, uint32_t thread_id);

void
block_disable(void *block);

/**
 * Data plane (DP) threads.
 */
int
thread_main(void *arg);

#endif /* _INCLUDE_THREAD_H_ */