blob: 28c8781014a59ac8d4b32a409ea6e48d4dd65dae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#ifndef __INIT_H
#define __INIT_H
struct rte_mempool;
int ctrl_init();
int kni_dev_init(struct rte_mempool *mbuf_pool);
int eth_dev_init(struct rte_mempool *mbuf_pool);
int distributor_init(int ded);
void distributor_loop(int chk_event);
int lcore_worker(void *a);
int lcore_distributor(void *a);
void register_init(int order, void (*func)(void));
#define DEFINE_INIT(o, func) static void __attribute__((constructor)) __init__(void){register_init(o,func);}
#endif
|