Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 2f9c9515 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring/net: support bundles for recv


If IORING_OP_RECV is used with provided buffers, the caller may also set
IORING_RECVSEND_BUNDLE to turn it into a multi-buffer recv. This grabs
buffers available and receives into them, posting a single completion for
all of it.

This can be used with multishot receive as well, or without it.

Now that both send and receive support bundles, add a feature flag for
it as well. If IORING_FEAT_RECVSEND_BUNDLE is set after registering the
ring, then the kernel supports bundles for recv and send.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent a05d1f62
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment