MCPcopy Index your code
hub / github.com/F-Stack/f-stack / ff_ipc_init

Function ff_ipc_init

tools/compat/ff_ipc.c:54–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54int
55ff_ipc_init(void)
56{
57 if (inited) {
58 return 0;
59 }
60
61 char *dpdk_argv[] = {
62 "ff-ipc", "-c1", "-n4",
63 "--proc-type=secondary",
64 /* RTE_LOG_WARNING */
65 "--log-level=5",
66 };
67
68 int ret = rte_eal_init(sizeof(dpdk_argv)/sizeof(dpdk_argv[0]), dpdk_argv);
69 if (ret < 0) {
70 rte_exit(EXIT_FAILURE, "Error with EAL initialization\n");
71 }
72
73 message_pool = rte_mempool_lookup(FF_MSG_POOL);
74 if (message_pool == NULL) {
75 rte_exit(EXIT_FAILURE, "lookup message pool:%s failed!\n", FF_MSG_POOL);
76 }
77
78 inited = 1;
79
80 return 0;
81}
82
83void
84ff_ipc_exit(void)

Callers 12

sysctl.cFile · 0.85
ff_ipc_msg_allocFunction · 0.85
mainFunction · 0.85
main.cFile · 0.85
mainFunction · 0.85
mainFunction · 0.85
route.cFile · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
main.cFile · 0.85

Calls 3

rte_exitFunction · 0.85
rte_mempool_lookupFunction · 0.85
rte_eal_initFunction · 0.50

Tested by

no test coverage detected