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

Function print_usage

dpdk/examples/l3fwd-graph/main.c:308–335  ·  view source on GitHub ↗

Display usage */

Source from the content-addressed store, hash-verified

306
307/* Display usage */
308static void
309print_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
337static uint64_t
338parse_num_pkt_cap(const char *num_pkt_cap)

Callers 1

parse_argsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected