Main rx and tx loop if only one worker lcore available */
| 544 | |
| 545 | /* Main rx and tx loop if only one worker lcore available */ |
| 546 | static void |
| 547 | rxtx_main_loop(void) |
| 548 | { |
| 549 | uint16_t i; |
| 550 | uint16_t nb_ports = cfg.nb_ports; |
| 551 | |
| 552 | RTE_LOG(INFO, DMA, "Entering main rx and tx loop for copy on" |
| 553 | " lcore %u\n", rte_lcore_id()); |
| 554 | |
| 555 | while (!force_quit) |
| 556 | for (i = 0; i < nb_ports; i++) { |
| 557 | dma_rx_port(&cfg.ports[i]); |
| 558 | dma_tx_port(&cfg.ports[i]); |
| 559 | } |
| 560 | } |
| 561 | |
| 562 | /* Start processing for each lcore. 8< */ |
| 563 | static void start_forwarding_cores(void) |
nothing calls this directly
no test coverage detected