From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 96D10C433FE for ; Sat, 7 May 2022 14:06:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1446484AbiEGOKF (ORCPT ); Sat, 7 May 2022 10:10:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1446487AbiEGOKD (ORCPT ); Sat, 7 May 2022 10:10:03 -0400 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9D483C723; Sat, 7 May 2022 07:06:17 -0700 (PDT) Received: by mail-pg1-x52f.google.com with SMTP id r192so4177940pgr.6; Sat, 07 May 2022 07:06:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6kq+acLDjz6PeqvlJm1Gf1hz/F7fG1BH4kW1rIpVdp4=; b=ei5SnDWBxj0PtMjNrGj8Eglu6LdAohAyYYabLDrlVOwQhY4yS1lWGM4EMPgqJ1MKOs 5tPLIzyxsA0mucmU4G/MwACIhi5zJcMgldRtJPJdSEadu5VHAliqjBIrY4h9KyYJ3oTr udCk7WYQCLE3R1xxPBrm1jqfs+ppn4CKhSFrJV1V72iP3RBGhhyCpMQbewmqG89m2Mu7 dsuzR0phIrrUUzC3Y7co3cgzkHdgiE14f7FJgNUKMuxSvAVVXhGXObfGol3lrG3mMY9Y 7c17BOav3YFLgG997Ql+wB8bm8Cw7qSxD73QAGBVdZfF8tfNx2s5s8e4dLey4bTACOMJ G/ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6kq+acLDjz6PeqvlJm1Gf1hz/F7fG1BH4kW1rIpVdp4=; b=wRlQhdk/mOGkc7GONYK4RIn7P4I74bUp2JzYXXWABtZKbcre6Di88kEMkCX/XwMqK3 +ACBBISoIS5+/O/f4BVgpAzyG1VRqhdz6/zG9TQGJzF0P7sRdWUintOdy5Qzu1uFOU5N UmJ5/8XBUPfGuNU0eYXoeR3x2NktGXH0wH3aQwbI8QPJiugyOeza42+1+j9kR0dCttw+ NE4oYKPhQNsPi7l9j5yFovWZlXEk01k96JjIsK3Nu2R0Q754UKDqYpuTk3FsnhhfktXV QkTOuzJqs8718aU6XmtB1NjZ19Vv9ie8k/lQrg7dB/cYhFZpTEX/WLMdsiwPMFlDqwIg L12A== X-Gm-Message-State: AOAM530iqmJb7xPOWGbfAv+I7UL2OBOMlF7+5RSIUEUT+WpKPS6+9jW3 PBD+Nvd1MHIgESAyOdr7yyYb2KJqlc8TFQ== X-Google-Smtp-Source: ABdhPJwa4MYT3u3eXdYE/BoskSBdkfoAmmujlziIdrBgitwRq4sLI3N7pT82RjUdRxWUuJamai87aw== X-Received: by 2002:a05:6a00:26cf:b0:4f6:fc52:7b6a with SMTP id p15-20020a056a0026cf00b004f6fc527b6amr8222522pfw.39.1651932377057; Sat, 07 May 2022 07:06:17 -0700 (PDT) Received: from HOWEYXU-MB0.tencent.com ([106.53.33.166]) by smtp.gmail.com with ESMTPSA id j13-20020a170902c3cd00b0015e8d4eb2acsm3674813plj.246.2022.05.07.07.06.13 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 May 2022 07:06:16 -0700 (PDT) From: Hao Xu To: io-uring@vger.kernel.org Cc: Jens Axboe , Pavel Begunkov , linux-kernel@vger.kernel.org Subject: [PATCH 1/4] io_uring: add IORING_ACCEPT_MULTISHOT for accept Date: Sat, 7 May 2022 22:06:17 +0800 Message-Id: <20220507140620.85871-2-haoxu.linux@gmail.com> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220507140620.85871-1-haoxu.linux@gmail.com> References: <20220507140620.85871-1-haoxu.linux@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org From: Hao Xu add an accept_flag IORING_ACCEPT_MULTISHOT for accept, which is to support multishot. Signed-off-by: Hao Xu Signed-off-by: Jens Axboe --- include/uapi/linux/io_uring.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/uapi/linux/io_uring.h b/include/uapi/linux/io_uring.h index 06621a278cb6..f4d9ca62a5a6 100644 --- a/include/uapi/linux/io_uring.h +++ b/include/uapi/linux/io_uring.h @@ -223,6 +223,11 @@ enum { */ #define IORING_RECVSEND_POLL_FIRST (1U << 0) +/* + * accept flags stored in accept_flags + */ +#define IORING_ACCEPT_MULTISHOT (1U << 15) + /* * IO completion data structure (Completion Queue Entry) */ -- 2.36.0