diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2021-11-24 20:58:11 +0000 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-11-24 14:27:47 -0700 |
commit | 2b0b33a7fd274e56d923d8dd027679feb1fd7eeb (patch) | |
tree | c7f0b30ebe94c3207e5473157117172848a96994 | |
parent | df9a741895028204b130b6cbe03c5c3dda3cf1a9 (diff) | |
download | liburing-2b0b33a7fd274e56d923d8dd027679feb1fd7eeb.tar.gz liburing-2b0b33a7fd274e56d923d8dd027679feb1fd7eeb.tar.bz2 |
io_uring.h: update to reflect cqe-skip feature
Add IOSQE_CQE_SKIP_SUCCESS and friends
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/665ef6b2f9440105f5826a63be5ac014b179ccbf.1637786880.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | src/include/liburing/io_uring.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/liburing/io_uring.h b/src/include/liburing/io_uring.h index 61683bd..a7d193d 100644 --- a/src/include/liburing/io_uring.h +++ b/src/include/liburing/io_uring.h @@ -74,6 +74,7 @@ enum { IOSQE_IO_HARDLINK_BIT, IOSQE_ASYNC_BIT, IOSQE_BUFFER_SELECT_BIT, + IOSQE_CQE_SKIP_SUCCESS_BIT, }; /* @@ -91,6 +92,8 @@ enum { #define IOSQE_ASYNC (1U << IOSQE_ASYNC_BIT) /* select buffer from sqe->buf_group */ #define IOSQE_BUFFER_SELECT (1U << IOSQE_BUFFER_SELECT_BIT) +/* don't post CQE if request succeeded */ +#define IOSQE_CQE_SKIP_SUCCESS (1U << IOSQE_CQE_SKIP_SUCCESS_BIT) /* * io_uring_setup() flags @@ -293,6 +296,7 @@ struct io_uring_params { #define IORING_FEAT_EXT_ARG (1U << 8) #define IORING_FEAT_NATIVE_WORKERS (1U << 9) #define IORING_FEAT_RSRC_TAGS (1U << 10) +#define IORING_FEAT_CQE_SKIP (1U << 11) /* * io_uring_register(2) opcodes and arguments |