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].
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -464,6 +464,7 @@ enum io_uring_msg_ring_flags { · 463 unmodified lines | ||
| 464 | 464 | #define IORING_NOP_FIXED_FILE (1U << 2) |
| 465 | 465 | #define IORING_NOP_FIXED_BUFFER (1U << 3) |
| 466 | 466 | #define IORING_NOP_TW (1U << 4) |
| 467 | +#define IORING_NOP_CQE32 (1U << 5) | |
| 467 | 468 | |
| 468 | 469 | /* |
| 469 | 470 | * IO completion data structure (Completion Queue Entry) |