| 591 | } |
| 592 | |
| 593 | void |
| 594 | launch_args_parse(int argc, char** argv) |
| 595 | { |
| 596 | #define PARAM_PROC_ID "proc-id" |
| 597 | #define PARAM_NUM_PROCS "num-procs" |
| 598 | |
| 599 | int n, opt; |
| 600 | char **argvopt; |
| 601 | int opt_idx; |
| 602 | portid_t pid; |
| 603 | enum { TX, RX }; |
| 604 | /* Default offloads for all ports. */ |
| 605 | uint64_t rx_offloads = rx_mode.offloads; |
| 606 | uint64_t tx_offloads = tx_mode.offloads; |
| 607 | struct rte_eth_dev_info dev_info; |
| 608 | uint16_t rec_nb_pkts; |
| 609 | int ret; |
| 610 | |
| 611 | static struct option lgopts[] = { |
| 612 | { "help", 0, 0, 0 }, |
| 613 | #ifdef RTE_LIB_CMDLINE |
| 614 | { "interactive", 0, 0, 0 }, |
| 615 | { "cmdline-file", 1, 0, 0 }, |
| 616 | { "auto-start", 0, 0, 0 }, |
| 617 | { "eth-peers-configfile", 1, 0, 0 }, |
| 618 | { "eth-peer", 1, 0, 0 }, |
| 619 | #endif |
| 620 | { "tx-first", 0, 0, 0 }, |
| 621 | { "stats-period", 1, 0, 0 }, |
| 622 | { "display-xstats", 1, 0, 0 }, |
| 623 | { "nb-cores", 1, 0, 0 }, |
| 624 | { "nb-ports", 1, 0, 0 }, |
| 625 | { "coremask", 1, 0, 0 }, |
| 626 | { "portmask", 1, 0, 0 }, |
| 627 | { "portlist", 1, 0, 0 }, |
| 628 | { "numa", 0, 0, 0 }, |
| 629 | { "no-numa", 0, 0, 0 }, |
| 630 | { "mp-anon", 0, 0, 0 }, /* deprecated */ |
| 631 | { "port-numa-config", 1, 0, 0 }, |
| 632 | { "ring-numa-config", 1, 0, 0 }, |
| 633 | { "socket-num", 1, 0, 0 }, |
| 634 | { "mbuf-size", 1, 0, 0 }, |
| 635 | { "total-num-mbufs", 1, 0, 0 }, |
| 636 | { "max-pkt-len", 1, 0, 0 }, |
| 637 | { "max-lro-pkt-size", 1, 0, 0 }, |
| 638 | #ifdef RTE_LIB_LATENCYSTATS |
| 639 | { "latencystats", 1, 0, 0 }, |
| 640 | #endif |
| 641 | #ifdef RTE_LIB_BITRATESTATS |
| 642 | { "bitrate-stats", 1, 0, 0 }, |
| 643 | #endif |
| 644 | { "disable-crc-strip", 0, 0, 0 }, |
| 645 | { "enable-lro", 0, 0, 0 }, |
| 646 | { "enable-rx-cksum", 0, 0, 0 }, |
| 647 | { "enable-rx-timestamp", 0, 0, 0 }, |
| 648 | { "enable-scatter", 0, 0, 0 }, |
| 649 | { "enable-hw-vlan", 0, 0, 0 }, |
| 650 | { "enable-hw-vlan-filter", 0, 0, 0 }, |