| 2321 | } |
| 2322 | |
| 2323 | static void usage(const char *name) |
| 2324 | { |
| 2325 | printf("%s:\n", name); |
| 2326 | printf("\t-m:\t\tUse multishot receive (%d)\n", recv_mshot); |
| 2327 | printf("\t-d:\t\tUse DEFER_TASKRUN (%d)\n", defer_tw); |
| 2328 | printf("\t-S:\t\tUse SQPOLL (%d)\n", sqpoll); |
| 2329 | printf("\t-f:\t\tUse only fixed files (%d)\n", fixed_files); |
| 2330 | printf("\t-a:\t\tUse huge pages for the ring (%d)\n", use_huge); |
| 2331 | printf("\t-t:\t\tTimeout for waiting on CQEs (usec) (%d)\n", wait_usec); |
| 2332 | printf("\t-w:\t\tNumber of CQEs to wait for each loop (%d)\n", wait_batch); |
| 2333 | printf("\t-B:\t\tUse bi-directional mode (%d)\n", bidi); |
| 2334 | printf("\t-s:\t\tAct only as a sink (%d)\n", is_sink); |
| 2335 | printf("\t-q:\t\tRing size to use (%d)\n", ring_size); |
| 2336 | printf("\t-H:\t\tHost to connect to (%s)\n", host); |
| 2337 | printf("\t-r:\t\tPort to receive on (%d)\n", receive_port); |
| 2338 | printf("\t-p:\t\tPort to connect to (%d)\n", send_port); |
| 2339 | printf("\t-6:\t\tUse IPv6 (%d)\n", ipv6); |
| 2340 | printf("\t-N:\t\tUse NAPI polling (%d)\n", napi); |
| 2341 | printf("\t-T:\t\tNAPI timeout (usec) (%d)\n", napi_timeout); |
| 2342 | printf("\t-b:\t\tSend/receive buf size (%d)\n", buf_size); |
| 2343 | printf("\t-n:\t\tNumber of provided buffers (pow2) (%d)\n", nr_bufs); |
| 2344 | printf("\t-u:\t\tUse provided buffers for send (%d)\n", send_ring); |
| 2345 | printf("\t-C:\t\tUse bundles for send (%d)\n", snd_bundle); |
| 2346 | printf("\t-z:\t\tUse zerocopy send (%d)\n", snd_zc); |
| 2347 | printf("\t-c:\t\tUse bundles for recv (%d)\n", snd_bundle); |
| 2348 | printf("\t-M:\t\tUse sendmsg (%d)\n", snd_msg); |
| 2349 | printf("\t-M:\t\tUse recvmsg (%d)\n", rcv_msg); |
| 2350 | printf("\t-x:\t\tShow extended stats (%d)\n", ext_stat); |
| 2351 | printf("\t-V:\t\tIncrease verbosity (%d)\n", verbose); |
| 2352 | } |
| 2353 | |
| 2354 | /* |
| 2355 | * Options parsing the ring / net setup |