diff options
author | Jens Axboe <axboe@kernel.dk> | 2022-04-26 17:39:50 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-04-29 21:12:12 -0600 |
commit | f548a12efd5ab97e6b1fb332e5634ce44b3d9328 (patch) | |
tree | 4226e1b9e59bce38d4a55e28dae49156831811b5 /include/uapi/linux/io_uring.h | |
parent | Merge branch 'tcp-pass-back-data-left-in-socket-after-receive' of git://git.kernel.org/pub/scm/linux/kernel/git/kuba/linux into for-5.19/io_uring-net (diff) | |
download | linux-dev-f548a12efd5ab97e6b1fb332e5634ce44b3d9328.tar.xz linux-dev-f548a12efd5ab97e6b1fb332e5634ce44b3d9328.zip |
io_uring: return hint on whether more data is available after receive
For now just use a CQE flag for this, with big CQE support we could
return the actual number of bytes left.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/uapi/linux/io_uring.h')
-rw-r--r-- | include/uapi/linux/io_uring.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/io_uring.h b/include/uapi/linux/io_uring.h index 49d1f3994f8d..92d1799892b2 100644 --- a/include/uapi/linux/io_uring.h +++ b/include/uapi/linux/io_uring.h @@ -220,9 +220,11 @@ struct io_uring_cqe { * * IORING_CQE_F_BUFFER If set, the upper 16 bits are the buffer ID * IORING_CQE_F_MORE If set, parent SQE will generate more CQE entries + * IORING_CQE_F_SOCK_NONEMPTY If set, more data to read after socket recv */ #define IORING_CQE_F_BUFFER (1U << 0) #define IORING_CQE_F_MORE (1U << 1) +#define IORING_CQE_F_SOCK_NONEMPTY (1U << 2) enum { IORING_CQE_BUFFER_SHIFT = 16, |