public inbox for io-uring@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Begunkov <asml.silence@gmail.com>
To: io-uring@vger.kernel.org
Cc: David Wei <dw@davidwei.uk>
Subject: Re: [PATCH liburing 2/2] examples: add a zcrx example
Date: Thu, 10 Apr 2025 00:00:33 +0100	[thread overview]
Message-ID: <bd93f763-b630-4588-a83e-ab50b1af891c@gmail.com> (raw)
In-Reply-To: <1d9c7573840a5d1f1ab4f054dadfa68be8820821.1744221361.git.asml.silence@gmail.com>

On 4/9/25 18:58, Pavel Begunkov wrote:
...
> +static void parse_opts(int argc, char **argv)
> +{
> +	struct sockaddr_in6 *addr6 = (void *) &cfg_addr;
> +	int c;
> +
> +	if (argc <= 1)
> +		usage(argv[0]);
> +
> +	while ((c = getopt(argc, argv, "vp:i:q:o:")) != -1) {
> +		switch (c) {
> +		case 'p':
> +			cfg_port = strtoul(optarg, NULL, 0);
> +			break;
> +		case 'i':
> +			cfg_ifname = optarg;
> +			break;
> +		case 'o': {
> +			cfg_oneshot = true;
> +			cfg_oneshot_recvs = strtoul(optarg, NULL, 0);
> +			break;
> +		}
> +		case 'q':
> +			cfg_queue_id = strtoul(optarg, NULL, 0);
> +			break;
> +		}
> +		case 'v':
> +			cfg_verify_data = true;
> +			break;

Sth went wrong here, I'll need to resend.

-- 
Pavel Begunkov


      reply	other threads:[~2025-04-09 22:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-09 17:58 [PATCH liburing 0/2] add zcrx example Pavel Begunkov
2025-04-09 17:58 ` [PATCH liburing 1/2] examples/send-zerocopy: add data verification Pavel Begunkov
2025-04-09 17:58 ` [PATCH liburing 2/2] examples: add a zcrx example Pavel Begunkov
2025-04-09 23:00   ` Pavel Begunkov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bd93f763-b630-4588-a83e-ab50b1af891c@gmail.com \
    --to=asml.silence@gmail.com \
    --cc=dw@davidwei.uk \
    --cc=io-uring@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox