History

io_uring/nop: add support for IORING_SETUP_CQE_MIXED

This adds support for setting IORING_NOP_CQE32 as a flag for a NOP command, in which case a 32b CQE will be posted rather than a regular one. This is the default if the ring has been setup with IORING_SETUP_CQE32. If the ring has been setup with IORING_SETUP_CQE_MIXED, then 16b CQEs will be posted without this flag set, and 32b CQEs if this flag is set. For the latter case, sqe->off is what will be posted as cqe->big_cqe[0] and sqe->addr is what will be posted as cqe->big_cqe[1].

Jens Axboe committed 1 year ago

Commit 806ecb21 parent e26dca62 files · +16 −2Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/io_uring.h+1−0
@@ -464,6 +464,7 @@ enum io_uring_msg_ring_flags { · 463 unmodified lines
464464 #define IORING_NOP_FIXED_FILE (1U << 2)
465465 #define IORING_NOP_FIXED_BUFFER (1U << 3)
466466 #define IORING_NOP_TW (1U << 4)
467+#define IORING_NOP_CQE32 (1U << 5)
467468
468469 /*
469470 * IO completion data structure (Completion Queue Entry)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t