Start processing for each lcore. 8< */
| 561 | |
| 562 | /* Start processing for each lcore. 8< */ |
| 563 | static 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 */ |
no test coverage detected