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

Function init_lcores

dpdk/app/test/test_pmd_perf.c:215–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215static int
216init_lcores(void)
217{
218 unsigned lcore_id;
219
220 for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) {
221 lcore_conf[lcore_id].socketid =
222 rte_lcore_to_socket_id(lcore_id);
223 if (rte_lcore_is_enabled(lcore_id) == 0) {
224 lcore_conf[lcore_id].status = LCORE_INVALID;
225 continue;
226 } else
227 lcore_conf[lcore_id].status = LCORE_AVAIL;
228 }
229 return 0;
230}
231
232static int
233init_mbufpool(unsigned nb_mbuf)

Callers 1

test_pmd_perfFunction · 0.85

Calls 2

rte_lcore_to_socket_idFunction · 0.85
rte_lcore_is_enabledFunction · 0.85

Tested by

no test coverage detected