io_uring: add IORING_ACCEPT_MULTISHOT for accept
authorHao Xu <howeyxu@tencent.com>
Sat, 14 May 2022 14:20:43 +0000 (22:20 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 14 May 2022 14:34:22 +0000 (08:34 -0600)
add an accept_flag IORING_ACCEPT_MULTISHOT for accept, which is to
support multishot.

Signed-off-by: Hao Xu <howeyxu@tencent.com>
Link: https://lore.kernel.org/r/20220514142046.58072-2-haoxu.linux@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/uapi/linux/io_uring.h

index 36ec43dc7bf9466ecca54224edcce1447b285cb6..15f821af9242366525300456efa4d53f95b49a87 100644 (file)
@@ -232,6 +232,11 @@ enum {
  */
 #define IORING_RECVSEND_POLL_FIRST     (1U << 0)
 
+/*
+ * accept flags stored in sqe->ioprio
+ */
+#define IORING_ACCEPT_MULTISHOT        (1U << 0)
+
 /*
  * IO completion data structure (Completion Queue Entry)
  */