| 989 | }; |
| 990 | |
| 991 | static void |
| 992 | ntb_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 | |
| 1009 | static void |
| 1010 | ntb_parse_args(int argc, char **argv) |
no test coverage detected