Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4062668iog; Tue, 28 Jun 2022 08:15:37 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vLYmrMN4ARlzzgHRTLfzbOzmvsNcfjPgZpaxO//mUvL1xfvrj3JVzr6dE9UhwTJoAOxY2k X-Received: by 2002:a63:3ec6:0:b0:40d:27a:7847 with SMTP id l189-20020a633ec6000000b0040d027a7847mr17870569pga.606.1656429337090; Tue, 28 Jun 2022 08:15:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656429337; cv=none; d=google.com; s=arc-20160816; b=Qs4vRizfQ0Q967yEUJEkDP8T7NHrgcIzDt+IKKKJd9074M+o5KSF+kZGvaLb3jIsYz rFw253wZy3YIzBpDbRxL6D13wuF9pL/NDSBrgU+WJPnMC+Ix0yjZpRtbs+2l9ta0WT/t GCBcXxi/IKG9Sk4rrzqbLnfOnjYwhtG6PgNINVBAf26PgkjBNa1+x3QMMiia9DprMvtv 1qwERedscUlLvWDmzHrwU3v5aERc70nb49kC+dIP+K/Q16CjiArB5myxVFQK5B6/c1Rf Ue+2Dd+wPqwBSTztRBxyYxRfh2KEJXM8qO/Q3udjq+M+Kb95pQYcA9e+lluPVO65a6wn uu+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GhUO5GqGv+DbKPtClNBIaCznVrmxio+cvLQXkR92xOo=; b=wHaj2tIRL5TWx0tE5pUlsbC0TLV/Qgs0ANPuutUUIt+429v9gZQ82wBvJ8YyNx7jGP 6oEKZHuRpZNOClFIsjbBMGuTyfGhxMP/DFW2NsczaVgTkpx0SY1Avc3fz0SznUTyZshD 4zlZnBlpDyYSnlT1olg1bgfKLvlb3LZ4eEBbO1hOWiKCGNCS0EwWoQ8X7XOdir5JgaYV kmf9A805MJybaRiA4Z3Xs/4Q/htXVoHp/Gslh2n5weZ8kGeuUXdsma6WXWe6aStAS7JJ WQkIAILuUvKP5X0XxG9gkmb/DMhvzNUVLXpjQVbRv0OSfN0zGHfbz28TmLle1JAKbssM rWdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=P7Zo9DXO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fb.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o23-20020a637e57000000b0040d3be23ea9si20439481pgn.70.2022.06.28.08.15.19; Tue, 28 Jun 2022 08:15:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=P7Zo9DXO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347724AbiF1PDJ (ORCPT + 99 others); Tue, 28 Jun 2022 11:03:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347695AbiF1PCz (ORCPT ); Tue, 28 Jun 2022 11:02:55 -0400 Received: from mx0b-00082601.pphosted.com (mx0b-00082601.pphosted.com [67.231.153.30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 304BC33E38 for ; Tue, 28 Jun 2022 08:02:54 -0700 (PDT) Received: from pps.filterd (m0148460.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 25SEdFhQ030169 for ; Tue, 28 Jun 2022 08:02:53 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=facebook; bh=GhUO5GqGv+DbKPtClNBIaCznVrmxio+cvLQXkR92xOo=; b=P7Zo9DXOH/pSsHHphilUequlMJmNVXTEOODghSi9E/AM2iAY0D/2jtx4h01a+fyRzOZ0 tiEFWtulHfEsPcW27dlvVSOzKSPwsRrz2M3ZJlRKjMMUtMD60rRTBwyMJe+IQYxynlyt EeWEJ+qs9GC8lnCWML3ZY8P5GNSYg/X6tUM= Received: from maileast.thefacebook.com ([163.114.130.16]) by mx0a-00082601.pphosted.com (PPS) with ESMTPS id 3h03kf05qx-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 28 Jun 2022 08:02:53 -0700 Received: from twshared17349.03.ash7.facebook.com (2620:10d:c0a8:1b::d) by mail.thefacebook.com (2620:10d:c0a8:82::e) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Tue, 28 Jun 2022 08:02:51 -0700 Received: by devbig038.lla2.facebook.com (Postfix, from userid 572232) id 10BBC244BBD9; Tue, 28 Jun 2022 08:02:38 -0700 (PDT) From: Dylan Yudaken To: Jens Axboe , Pavel Begunkov , CC: , , Dylan Yudaken Subject: [PATCH for-next 7/8] io_uring: add IORING_RECV_MULTISHOT flag Date: Tue, 28 Jun 2022 08:02:27 -0700 Message-ID: <20220628150228.1379645-8-dylany@fb.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220628150228.1379645-1-dylany@fb.com> References: <20220628150228.1379645-1-dylany@fb.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-FB-Internal: Safe Content-Type: text/plain X-Proofpoint-GUID: hbWfyTlD4qseGonWdOuvS9in1rvgc277 X-Proofpoint-ORIG-GUID: hbWfyTlD4qseGonWdOuvS9in1rvgc277 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-06-28_07,2022-06-28_01,2022-06-22_01 X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Introduce multishot recv flag which will be used for multishot recv/recvmsg Signed-off-by: Dylan Yudaken --- 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 09e7c3b13d2d..1e5bdb323184 100644 --- a/include/uapi/linux/io_uring.h +++ b/include/uapi/linux/io_uring.h @@ -259,8 +259,13 @@ enum io_uring_op { * or receive and arm poll if that yields an * -EAGAIN result, arm poll upfront and skip * the initial transfer attempt. + * + * IORING_RECV_MULTISHOT Multishot recv. Sets IORING_CQE_F_MORE if + * the handler will continue to report + * CQEs on behalf of the same SQE. */ #define IORING_RECVSEND_POLL_FIRST (1U << 0) +#define IORING_RECV_MULTISHOT (1U << 1) =20 /* * accept flags stored in sqe->ioprio --=20 2.30.2