summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Roesch <shr@fb.com>2022-04-25 11:26:34 -0700
committerJens Axboe <axboe@kernel.dk>2022-05-16 09:30:52 -0600
commit5fa7867d8c5b027a421c72dfc68c7c4ac186dbb9 (patch)
tree5cc7a03e682c727154f6121d40c7610ce295198f
parente6f6a2d0e4ff10cadd13d115c48b36df11b846b4 (diff)
downloadliburing-5fa7867d8c5b027a421c72dfc68c7c4ac186dbb9.tar.gz
liburing-5fa7867d8c5b027a421c72dfc68c7c4ac186dbb9.tar.bz2
liburing: Update io_uring.h with large CQE kernel changes
This updates the io_uring.h file with the changes in the kernel. Signed-off-by: Stefan Roesch <shr@fb.com> Link: https://lore.kernel.org/r/20220425182639.2446370-2-shr@fb.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--src/include/liburing/io_uring.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/liburing/io_uring.h b/src/include/liburing/io_uring.h
index ad9c929..4e1f994 100644
--- a/src/include/liburing/io_uring.h
+++ b/src/include/liburing/io_uring.h
@@ -109,6 +109,7 @@ enum {
#define IORING_SETUP_R_DISABLED (1U << 6) /* start with ring disabled */
#define IORING_SETUP_SUBMIT_ALL (1U << 7) /* continue submit on error */
#define IORING_SETUP_SQE128 (1U << 8) /* SQEs are 128b */
+#define IORING_SETUP_CQE32 (1U << 9) /* CQEs are 32b */
enum {
IORING_OP_NOP,
@@ -227,6 +228,12 @@ struct io_uring_cqe {
__u64 user_data; /* sqe->data submission passed back */
__s32 res; /* result code for this event */
__u32 flags;
+
+ /*
+ * If the ring is initialized wit IORING_SETUP_CQE32, then this field
+ * contains 16-bytes of padding, doubling the size fo the CQE.
+ */
+ __u64 big_cqe[];
};
/*