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

Function ntb_usage

dpdk/examples/ntb/ntb_fwd.c:991–1007  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

989};
990
991static void
992ntb_usage(const char *prgname)
993{
994 printf("%s [EAL options] -- [options]\n"
995 "-i: run in interactive mode.\n"
996 "-qp=N: set number of queues as N (N > 0, default: 1).\n"
997 "--fwd-mode=N: set fwd mode (N: file-trans | rxonly | "
998 "txonly | iofwd, default: file-trans)\n"
999 "--buf-size=N: set mbuf dataroom size as N (0 < N < 65535,"
1000 " default: 2048).\n"
1001 "--nb-desc=N: set number of descriptors as N (%u <= N <= %u,"
1002 " default: 1024).\n"
1003 "--txfreet=N: set tx free thresh for NTB driver as N. (N >= 0)\n"
1004 "--burst=N: set pkt burst as N (0 < N <= %u default: 32).\n",
1005 prgname, NTB_MIN_DESC_SIZE, NTB_MAX_DESC_SIZE,
1006 NTB_MAX_PKT_BURST);
1007}
1008
1009static void
1010ntb_parse_args(int argc, char **argv)

Callers 1

ntb_parse_argsFunction · 0.85

Calls 1

printfFunction · 0.50

Tested by

no test coverage detected