From patchwork Thu Oct 20 11:51:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dylan Yudaken X-Patchwork-Id: 13013333 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 44B55C433FE for ; Thu, 20 Oct 2022 11:51:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230349AbiJTLvr (ORCPT ); Thu, 20 Oct 2022 07:51:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229604AbiJTLvq (ORCPT ); Thu, 20 Oct 2022 07:51:46 -0400 Received: from mx0a-00082601.pphosted.com (mx0b-00082601.pphosted.com [67.231.153.30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D03B1C6BE7 for ; Thu, 20 Oct 2022 04:51:45 -0700 (PDT) Received: from pps.filterd (m0001303.ppops.net [127.0.0.1]) by m0001303.ppops.net (8.17.1.5/8.17.1.5) with ESMTP id 29K8KA1O020833 for ; Thu, 20 Oct 2022 04:51:44 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meta.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=s2048-2021-q4; bh=u+3OWBUDOoX66R5wv8E+o2AQ8PfvzE/ISOfi6efA3tE=; b=IDzHbNvtVhRWzpDz8yV0cFAr0hCnsynE9heTVP5AKNh/NCRZzePRKEaJD55GzfbKIkzj ot//CnU6QxeKzaBCp4OE7gja9mw/Kkv8JbHZNuiK33CbrOMdZq71jJWUdXIJlp138c0V EJsJx6bFaIf9RLggTCDMt8POWiUZrQe8EQOJtwrQjgAY2ORHQ8NWtza0bDoPTx9jPYC9 Fp3+kRT3xORy7bs5XS6zznFdgyXvMsx9Nz+7iqRCEtmXgSnMtPGeskCLAmuOfWrM+wWz YjNHp55AngcoqFVPwWnyzGyejWkAyD9bp7Z6LhCmGKBVTI1ND6tAcHwNGgmBHW5Q4DI5 hA== Received: from maileast.thefacebook.com ([163.114.130.16]) by m0001303.ppops.net (PPS) with ESMTPS id 3kb2qp9rhk-16 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 20 Oct 2022 04:51:44 -0700 Received: from twshared0933.07.ash9.facebook.com (2620:10d:c0a8:1b::d) by mail.thefacebook.com (2620:10d:c0a8:83::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 20 Oct 2022 04:51:43 -0700 Received: by devbig038.lla2.facebook.com (Postfix, from userid 572232) id EC2317FF03CB; Thu, 20 Oct 2022 04:51:41 -0700 (PDT) From: Dylan Yudaken To: Jens Axboe , Pavel Begunkov CC: , Dylan Yudaken , Frank Rehwinkel Subject: [PATCH liburing] Document maximum ring size for io_uring_register_buf_ring Date: Thu, 20 Oct 2022 04:51:41 -0700 Message-ID: <20221020115141.3723324-1-dylany@meta.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-FB-Internal: Safe X-Proofpoint-GUID: oS8lZ-D-omJGbGGig6U0Qmd_EYsRbERI X-Proofpoint-ORIG-GUID: oS8lZ-D-omJGbGGig6U0Qmd_EYsRbERI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-20_03,2022-10-20_01,2022-06-22_01 Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org The maximum size was not documented, so do that. Reported-by: Frank Rehwinkel Signed-off-by: Dylan Yudaken --- man/io_uring_register_buf_ring.3 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) base-commit: 13f3fe3af811d8508676dbd1ef552f2b459e1b21 diff --git a/man/io_uring_register_buf_ring.3 b/man/io_uring_register_buf_ring.3 index f75063fc9f2c..357a3fb39a0c 100644 --- a/man/io_uring_register_buf_ring.3 +++ b/man/io_uring_register_buf_ring.3 @@ -55,7 +55,8 @@ or similar. The size of the ring is the product of and the size of .IR "struct io_uring_buf" . .I ring_entries -is the desired size of the ring, and must be a power-of-2 in size. +is the desired size of the ring, and must be a power-of-2 in size. The maximum size +allowed is 2^15 (32768). .I bgid is the buffer group ID associated with this ring. SQEs that select a buffer has a buffer group associated with them in their