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

Function dma_usage

dpdk/examples/dma/dmafwd.c:587–604  ·  view source on GitHub ↗

Display usage */

Source from the content-addressed store, hash-verified

585
586/* Display usage */
587static void
588dma_usage(const char *prgname)
589{
590 printf("%s [EAL options] -- -p PORTMASK [-q NQ]\n"
591 " -b --dma-batch-size: number of requests per DMA batch\n"
592 " -f --max-frame-size: max frame size\n"
593 " -m --force-min-copy-size: force a minimum copy length, even for smaller packets\n"
594 " -p --portmask: hexadecimal bitmask of ports to configure\n"
595 " -q NQ: number of RX queues per port (default is 1)\n"
596 " --[no-]mac-updating: Enable or disable MAC addresses updating (enabled by default)\n"
597 " When enabled:\n"
598 " - The source MAC address is replaced by the TX port MAC address\n"
599 " - The destination MAC address is replaced by 02:00:00:00:00:TX_PORT_ID\n"
600 " -c --copy-type CT: type of copy: sw|hw\n"
601 " -s --ring-size RS: size of dmadev descriptor ring for hardware copy mode or rte_ring for software copy mode\n"
602 " -i --stats-interval SI: interval, in seconds, between stats prints (default is 1)\n",
603 prgname);
604}
605
606static int
607dma_parse_portmask(const char *portmask)

Callers 1

dma_parse_argsFunction · 0.85

Calls 1

printfFunction · 0.50

Tested by

no test coverage detected