MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ff_dpdk_run

Function ff_dpdk_run

lib/ff_dpdk_if.c:2401–2415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2399}
2400
2401void
2402ff_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
2417void
2418ff_dpdk_stop(void) {

Callers 1

ff_runFunction · 0.85

Calls 6

rte_mallocFunction · 0.85
rte_eal_mp_remote_launchFunction · 0.85
rte_eal_mp_wait_lcoreFunction · 0.85
rte_freeFunction · 0.85
ff_log_closeFunction · 0.85
rte_eal_cleanupFunction · 0.50

Tested by

no test coverage detected