Display usage */
| 585 | |
| 586 | /* Display usage */ |
| 587 | static void |
| 588 | dma_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 | |
| 606 | static int |
| 607 | dma_parse_portmask(const char *portmask) |
no test coverage detected