Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp614998rdb; Tue, 31 Oct 2023 18:07:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHuUxwSFAafVEHjy1c/kqIBtYHw0fkTaVsrb7m/+FAELAa67B7hVTY2dGFHz8yhcreIM6jD X-Received: by 2002:a05:6358:9d85:b0:168:e3a9:14f5 with SMTP id d5-20020a0563589d8500b00168e3a914f5mr12659843rwo.12.1698800858160; Tue, 31 Oct 2023 18:07:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698800858; cv=none; d=google.com; s=arc-20160816; b=sjEHbl2j9UUlU1ALYWVwlMQtywEqVXYIkujq4nsnXmVwFzJHY0mB5KaTCcPAOVmaP4 HelSW4EBWPTu8Ri5V8bAXCO3R34kwYtz/HdL+xXOkoxKN+V3BM8JPfLXx3rA0SGUy65k rEBIf2E0VMXnBVkEB3ZfTpLv92KLn8c/IjTfKF7P4XWfAdJYurtVxB8+mcObUsaY0ux3 AxlTPXl+vQD07L4ic7/2laH7b1kC9woo2oRzi8YhEi35FGb/CLsKD70jGkO/s4xVremq 2dI0G7N/y8x9sESLXHGU5MNEl2XDWrrjVOs+s6qcWRGtcfjAn/nDJDL9SjEdoOgLmtni QzuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date; bh=wlq6nLMYJcz7Ibplz7o2NYRzLF/zRtvQGYRhjnlvdjo=; fh=sT3EPMnxJ58PaNMCrlEF/Fz7SYf9YRzYjk34QgiPh24=; b=M3heaswisrZBGbs9i2sLwjCU8Xtzn8I48EbOQhBUJyX+wdNJh93pT1Uf0WuwRAMHXI wDqffd1YLnp9Q7gISLZ10EeOD9FzGfsHYX6I7OxvRuLPx3OozlxZCnXxry9+c/oTtD49 n+7H68f96gXHBN3aNlcyUz9Yh76S0unbR7dSUz7KwpdaaeE96MeB9jdLgHt2uGprTp0E I5sL0SbBDuiXh2uy+rCWmLQhI8fUDlFeRvszM+NH+k+hmFuAceBtTkHZs+QI2VipLoKP JA2x2X91oWCE9aeP9lKgqz79SzXMiOduJ+Mh28z/XDfTARxi5A41aZA1PescCew5S0JA tfQQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id v16-20020a63f210000000b005ac39221cc8si1935553pgh.567.2023.10.31.18.07.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 18:07:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id B0AB58023F18; Tue, 31 Oct 2023 18:07:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376931AbjKABHW (ORCPT + 99 others); Tue, 31 Oct 2023 21:07:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345068AbjKABHU (ORCPT ); Tue, 31 Oct 2023 21:07:20 -0400 Received: from out30-110.freemail.mail.aliyun.com (out30-110.freemail.mail.aliyun.com [115.124.30.110]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A041C9; Tue, 31 Oct 2023 18:07:17 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R681e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046051;MF=dust.li@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VvIt0M9_1698800833; Received: from localhost(mailfrom:dust.li@linux.alibaba.com fp:SMTPD_---0VvIt0M9_1698800833) by smtp.aliyun-inc.com; Wed, 01 Nov 2023 09:07:14 +0800 Date: Wed, 1 Nov 2023 09:07:12 +0800 From: Dust Li To: Gerd Bayer , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet Cc: Jan Karcher , Wenjia Zhang , Tony Lu , netdev@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net] net/smc: fix documentation of buffer sizes Message-ID: <20231101010712.GD92403@linux.alibaba.com> Reply-To: dust.li@linux.alibaba.com References: <20231030170343.748097-1-gbayer@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231030170343.748097-1-gbayer@linux.ibm.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 31 Oct 2023 18:07:35 -0700 (PDT) On Mon, Oct 30, 2023 at 06:03:43PM +0100, Gerd Bayer wrote: >Since commit 833bac7ec392 ("net/smc: Fix setsockopt and sysctl to >specify same buffer size again") the SMC protocol uses its own >default values for the smc.rmem and smc.wmem sysctl variables >which are no longer derived from the TCP IPv4 buffer sizes. > >Fixup the kernel documentation to reflect this change, too. > >Fixes: 833bac7ec392 ("net/smc: Fix setsockopt and sysctl to specify same buffer size again") >Signed-off-by: Gerd Bayer >Reviewed-by: Wenjia Zhang Reviewed-by: Dust Li >--- > Documentation/networking/smc-sysctl.rst | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > >diff --git a/Documentation/networking/smc-sysctl.rst b/Documentation/networking/smc-sysctl.rst >index 6d8acdbe9be1..769149d98773 100644 >--- a/Documentation/networking/smc-sysctl.rst >+++ b/Documentation/networking/smc-sysctl.rst >@@ -44,18 +44,16 @@ smcr_testlink_time - INTEGER > > wmem - INTEGER > Initial size of send buffer used by SMC sockets. >- The default value inherits from net.ipv4.tcp_wmem[1]. > > The minimum value is 16KiB and there is no hard limit for max value, but > only allowed 512KiB for SMC-R and 1MiB for SMC-D. > >- Default: 16K >+ Default: 64KiB > > rmem - INTEGER > Initial size of receive buffer (RMB) used by SMC sockets. >- The default value inherits from net.ipv4.tcp_rmem[1]. > > The minimum value is 16KiB and there is no hard limit for max value, but > only allowed 512KiB for SMC-R and 1MiB for SMC-D. > >- Default: 128K >+ Default: 64KiB >-- >2.41.0