diff options
author | Jens Axboe <axboe@kernel.dk> | 2024-03-11 08:25:59 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-03-11 08:25:59 -0600 |
commit | 17feae920432e5b091b04376e7f10a4347a53a37 (patch) | |
tree | eaf7e091ce50b8b4750544232158440dc9c25544 | |
parent | f1de01a81a4dfa44d27aa19adbdab215047076fe (diff) | |
download | liburing-17feae920432e5b091b04376e7f10a4347a53a37.tar.gz |
examples/proxy: lay out usage information more logically
Present them roughly in the order of:
- Generic ring options
- Generic options
- Proxy mode and hosts to talk to
- Buffer management
- send/recv options
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | examples/proxy.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/proxy.c b/examples/proxy.c index ce0764fe..37eb35f1 100644 --- a/examples/proxy.c +++ b/examples/proxy.c @@ -1556,25 +1556,25 @@ static void usage(const char *name) printf("\t-m:\t\tUse multishot receive (%d)\n", recv_mshot); printf("\t-d:\t\tUse DEFER_TASKRUN (%d)\n", defer_tw); printf("\t-S:\t\tUse SQPOLL (%d)\n", sqpoll); - printf("\t-b:\t\tSend/receive buf size (%d)\n", buf_size); - printf("\t-u:\t\tUse provided buffers for send (%d)\n", send_ring); - printf("\t-C:\t\tUse bundles for send (%d)\n", snd_bundle); - printf("\t-c:\t\tUse bundles for recv (%d)\n", snd_bundle); - printf("\t-n:\t\tNumber of provided buffers (pow2) (%d)\n", nr_bufs); - printf("\t-w:\t\tNumber of CQEs to wait for each loop (%d)\n", wait_batch); - printf("\t-t:\t\tTimeout for waiting on CQEs (usec) (%d)\n", wait_usec); - printf("\t-s:\t\tAct only as a sink (%d)\n", is_sink); printf("\t-f:\t\tUse only fixed files (%d)\n", fixed_files); + printf("\t-t:\t\tTimeout for waiting on CQEs (usec) (%d)\n", wait_usec); + printf("\t-w:\t\tNumber of CQEs to wait for each loop (%d)\n", wait_batch); printf("\t-B:\t\tUse bi-directional mode (%d)\n", bidi); + printf("\t-s:\t\tAct only as a sink (%d)\n", is_sink); + printf("\t-q:\t\tRing size to use (%d)\n", ring_size); printf("\t-H:\t\tHost to connect to (%s)\n", host); printf("\t-r:\t\tPort to receive on (%d)\n", receive_port); printf("\t-p:\t\tPort to connect to (%d)\n", send_port); printf("\t-6:\t\tUse IPv6 (%d)\n", ipv6); printf("\t-N:\t\tUse NAPI polling (%d)\n", napi); printf("\t-T:\t\tNAPI timeout (usec) (%d)\n", napi_timeout); + printf("\t-b:\t\tSend/receive buf size (%d)\n", buf_size); + printf("\t-n:\t\tNumber of provided buffers (pow2) (%d)\n", nr_bufs); + printf("\t-u:\t\tUse provided buffers for send (%d)\n", send_ring); + printf("\t-C:\t\tUse bundles for send (%d)\n", snd_bundle); + printf("\t-c:\t\tUse bundles for recv (%d)\n", snd_bundle); printf("\t-M:\t\tUse sendmsg (%d)\n", snd_msg); printf("\t-M:\t\tUse recvmsg (%d)\n", rcv_msg); - printf("\t-q:\t\tRing size to use (%d)\n", ring_size); printf("\t-V:\t\tIncrease verbosity (%d)\n", verbose); } |