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

Function start_forwarding_cores

dpdk/examples/dma/dmafwd.c:563–583  ·  view source on GitHub ↗

Start processing for each lcore. 8< */

Source from the content-addressed store, hash-verified

561
562/* Start processing for each lcore. 8< */
563static void start_forwarding_cores(void)
564{
565 uint32_t lcore_id = rte_lcore_id();
566
567 RTE_LOG(INFO, DMA, "Entering %s on lcore %u\n",
568 __func__, rte_lcore_id());
569
570 if (cfg.nb_lcores == 1) {
571 lcore_id = rte_get_next_lcore(lcore_id, true, true);
572 rte_eal_remote_launch((lcore_function_t *)rxtx_main_loop,
573 NULL, lcore_id);
574 } else if (cfg.nb_lcores > 1) {
575 lcore_id = rte_get_next_lcore(lcore_id, true, true);
576 rte_eal_remote_launch((lcore_function_t *)rx_main_loop,
577 NULL, lcore_id);
578
579 lcore_id = rte_get_next_lcore(lcore_id, true, true);
580 rte_eal_remote_launch((lcore_function_t *)tx_main_loop, NULL,
581 lcore_id);
582 }
583}
584/* >8 End of starting to process for each lcore. */
585
586/* Display usage */

Callers 1

mainFunction · 0.85

Calls 3

rte_lcore_idFunction · 0.85
rte_get_next_lcoreFunction · 0.85
rte_eal_remote_launchFunction · 0.85

Tested by

no test coverage detected