diff options
Diffstat (limited to 'accel-dp/init.h')
-rw-r--r-- | accel-dp/init.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/accel-dp/init.h b/accel-dp/init.h new file mode 100644 index 00000000..28c87810 --- /dev/null +++ b/accel-dp/init.h @@ -0,0 +1,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 |