Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

io_uring: add UAPI definitions for mixed CQE postings

This adds the CQE flags related to supporting a mixed CQ ring mode, where
both normal (16b) and big (32b) CQEs may be posted.

No functional changes in this patch.

Signed-off-by: Jens Axboe <axboe@kernel.dk>

+10
+10
include/uapi/linux/io_uring.h
··· 491 491 * other provided buffer type, all completions with a 492 492 * buffer passed back is automatically returned to the 493 493 * application. 494 + * IORING_CQE_F_SKIP If set, then the application/liburing must ignore this 495 + * CQE. It's only purpose is to fill a gap in the ring, 496 + * if a large CQE is attempted posted when the ring has 497 + * just a single small CQE worth of space left before 498 + * wrapping. 499 + * IORING_CQE_F_32 If set, this is a 32b/big-cqe posting. Use with rings 500 + * setup in a mixed CQE mode, where both 16b and 32b 501 + * CQEs may be posted to the CQ ring. 494 502 */ 495 503 #define IORING_CQE_F_BUFFER (1U << 0) 496 504 #define IORING_CQE_F_MORE (1U << 1) 497 505 #define IORING_CQE_F_SOCK_NONEMPTY (1U << 2) 498 506 #define IORING_CQE_F_NOTIF (1U << 3) 499 507 #define IORING_CQE_F_BUF_MORE (1U << 4) 508 + #define IORING_CQE_F_SKIP (1U << 5) 509 + #define IORING_CQE_F_32 (1U << 15) 500 510 501 511 #define IORING_CQE_BUFFER_SHIFT 16 502 512