| 2399 | } |
| 2400 | |
| 2401 | void |
| 2402 | ff_dpdk_run(loop_func_t loop, void *arg) { |
| 2403 | struct loop_routine *lr = rte_malloc(NULL, |
| 2404 | sizeof(struct loop_routine), 0); |
| 2405 | stop_loop = 0; |
| 2406 | lr->loop = loop; |
| 2407 | lr->arg = arg; |
| 2408 | rte_eal_mp_remote_launch(main_loop, lr, CALL_MAIN); |
| 2409 | rte_eal_mp_wait_lcore(); |
| 2410 | rte_free(lr); |
| 2411 | |
| 2412 | /* FIXME: Cleanup ff_config, freebsd etc. */ |
| 2413 | rte_eal_cleanup(); |
| 2414 | ff_log_close(); |
| 2415 | } |
| 2416 | |
| 2417 | void |
| 2418 | ff_dpdk_stop(void) { |
no test coverage detected