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

Function rxtx_main_loop

dpdk/examples/dma/dmafwd.c:546–560  ·  view source on GitHub ↗

Main rx and tx loop if only one worker lcore available */

Source from the content-addressed store, hash-verified

544
545/* Main rx and tx loop if only one worker lcore available */
546static void
547rxtx_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< */
563static void start_forwarding_cores(void)

Callers

nothing calls this directly

Calls 3

rte_lcore_idFunction · 0.85
dma_rx_portFunction · 0.85
dma_tx_portFunction · 0.85

Tested by

no test coverage detected