Display usage */
| 306 | |
| 307 | /* Display usage */ |
| 308 | static void |
| 309 | print_usage(const char *prgname) |
| 310 | { |
| 311 | fprintf(stderr, |
| 312 | "%s [EAL options] --" |
| 313 | " -p PORTMASK" |
| 314 | " [-P]" |
| 315 | " --config (port,queue,lcore)[,(port,queue,lcore)]" |
| 316 | " [--eth-dest=X,MM:MM:MM:MM:MM:MM]" |
| 317 | " [--max-pkt-len PKTLEN]" |
| 318 | " [--no-numa]" |
| 319 | " [--per-port-pool]" |
| 320 | " [--num-pkt-cap]\n\n" |
| 321 | |
| 322 | " -p PORTMASK: Hexadecimal bitmask of ports to configure\n" |
| 323 | " -P : Enable promiscuous mode\n" |
| 324 | " --config (port,queue,lcore): Rx queue configuration\n" |
| 325 | " --eth-dest=X,MM:MM:MM:MM:MM:MM: Ethernet destination for " |
| 326 | "port X\n" |
| 327 | " --max-pkt-len PKTLEN: maximum packet length in decimal (64-9600)\n" |
| 328 | " --model NAME: walking model name, dispatch or rtc(by default)\n" |
| 329 | " --no-numa: Disable numa awareness\n" |
| 330 | " --per-port-pool: Use separate buffer pool per port\n" |
| 331 | " --pcap-enable: Enables pcap capture\n" |
| 332 | " --pcap-num-cap NUMPKT: Number of packets to capture\n" |
| 333 | " --pcap-file-name NAME: Pcap file name\n\n", |
| 334 | prgname); |
| 335 | } |
| 336 | |
| 337 | static uint64_t |
| 338 | parse_num_pkt_cap(const char *num_pkt_cap) |