From: Jens Axboe <axboe@kernel.dk>
To: norman.maurer@googlemail.com, io-uring@vger.kernel.org
Cc: Norman Maurer <norman_maurer@apple.com>
Subject: Re: [PATCH v2] io_uring/net: Support multishot receive len cap
Date: Tue, 15 Jul 2025 11:32:57 -0600 [thread overview]
Message-ID: <c2cf0c2b-b5bd-476f-a5d2-b5305ed6c3d9@kernel.dk> (raw)
In-Reply-To: <20250715140249.31186-1-norman_maurer@apple.com>
On 7/15/25 8:02 AM, norman.maurer@googlemail.com wrote:
> From: Norman Maurer <norman_maurer@apple.com>
>
> At the moment its very hard to do fine grained backpressure when using
> multishot as the kernel might produce a lot of completions before the
> user has a chance to cancel a previous submitted multishot recv.
>
> This change adds support to issue a multishot recv that is capped by a
> len, which means the kernel will only rearm until X amount of data is
> received. When the limit is reached the completion will signal to the
> user that a re-arm needs to happen manually by not setting the IORING_CQE_F_MORE
> flag.
I like this. Worth mentioning that there's already a test case for this
in liburing:
https://git.kernel.dk/cgit/liburing/tree/test/recv-mshot-fair.c
--
Jens Axboe
next prev parent reply other threads:[~2025-07-15 17:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-15 14:02 [PATCH v2] io_uring/net: Support multishot receive len cap norman.maurer
2025-07-15 17:32 ` Jens Axboe [this message]
2025-07-16 14:28 ` Jens Axboe
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=c2cf0c2b-b5bd-476f-a5d2-b5305ed6c3d9@kernel.dk \
--to=axboe@kernel.dk \
--cc=io-uring@vger.kernel.org \
--cc=norman.maurer@googlemail.com \
--cc=norman_maurer@apple.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.