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 C97EAC433EF for ; Tue, 4 Jan 2022 00:37:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231483AbiADAhu (ORCPT ); Mon, 3 Jan 2022 19:37:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229527AbiADAht (ORCPT ); Mon, 3 Jan 2022 19:37:49 -0500 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4804DC061761 for ; Mon, 3 Jan 2022 16:37:49 -0800 (PST) Received: by mail-pg1-x534.google.com with SMTP id f5so1927610pgk.12 for ; Mon, 03 Jan 2022 16:37:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=r80Q7ZgzFHWqgqEmnbgyRG7xd1r89s265D9J2/l+W84=; b=GsNxXiYaJhjn4p4UEFLhQ4tT7/ZZ9MKMlLnUZ7GOFrYE1DuHTKPU8j+sqN6MC2ESxg LXe90IgBSEMfQjB2V4I4Ljo9bMnqDeqyaX6JXkXC4Gefd9vC4/ZtcZX668OzQkkdgqrM DRwiHzXW5HiWscBlHyvY0wuDkGmkaUpzNSmUA= 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:mime-version :content-transfer-encoding; bh=r80Q7ZgzFHWqgqEmnbgyRG7xd1r89s265D9J2/l+W84=; b=3UzOCJnajacHL2zJ3cZK4E4GyivUbOCXhnRsp5d4QLioBeB97W/aCaMDEM8eF3ERrN 2nOSk3yWFTAbGRZVjcbgm4cni2RQtwpoI9M8iWyQSYLTd+IASDxM6hwVNAmlf7+FBrEu wpeGwANtI8pgQ/wBljN3nkIdwvufSUaqE9enGGKTqJLv5DJdYLPVP49FrO1t+RqbC1Vk j2AJUgYwSSu1DJ7stKaX4ruId7MPS1J+OjgcyMstR5+LIPUawqtNRzcfKgcvUcvpFons mhpZ0iX2SEGeW+sZ63H81O2ZLJ4MuNpahAyA+OrwaelOn7m2K+a0O+DmFrAzBMZoTvIQ g8gw== X-Gm-Message-State: AOAM531Zn6qZhtTzLZivZHWre9Jxp/xnMnRCu5yRQNiJKvGbBGQ1lIEc RJ2lI2xPNrlfoTt66/TZq3i55w== X-Google-Smtp-Source: ABdhPJzRpoCt0hTzb+wYxLNL+V/Tb2VP5PdT0CMDeHJvrtKmLZZj5c1FgDf7py1HmXNLhZRwC8APVA== X-Received: by 2002:a63:4:: with SMTP id 4mr42575666pga.250.1641256667512; Mon, 03 Jan 2022 16:37:47 -0800 (PST) Received: from localhost ([2600:1700:2434:285f:6424:230a:127e:6cca]) by smtp.gmail.com with ESMTPSA id s8sm16879954pfu.190.2022.01.03.16.37.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jan 2022 16:37:47 -0800 (PST) From: Ivan Babrou To: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@cloudflare.com, "David S . Miller" , Jakub Kicinski , Jonathan Corbet , Eric Dumazet , Ivan Babrou Subject: [PATCH net] tcp: note that tcp_rmem[1] has a limited range Date: Mon, 3 Jan 2022 16:37:22 -0800 Message-Id: <20220104003722.73982-1-ivan@cloudflare.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The value of rcv_ssthresh is limited to tcp_rwin, which is limited to 64k at the handshake time, since window scaling is not allowed there. Let's add a note to the docs that increasing tcp_rmem[1] does not have any effect on raising the initial value of rcv_ssthresh past 64k. Link: https://lkml.org/lkml/2021/12/22/652 Signed-off-by: Ivan Babrou --- Documentation/networking/ip-sysctl.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/networking/ip-sysctl.rst b/Documentation/networking/ip-sysctl.rst index 2572eecc3e86..16528bc92e65 100644 --- a/Documentation/networking/ip-sysctl.rst +++ b/Documentation/networking/ip-sysctl.rst @@ -683,7 +683,8 @@ tcp_rmem - vector of 3 INTEGERs: min, default, max default: initial size of receive buffer used by TCP sockets. This value overrides net.core.rmem_default used by other protocols. Default: 131072 bytes. - This value results in initial window of 65535. + This value results in initial window of 65535. Increasing this value + won't raise the initial advertised window above 65535. max: maximal size of receive buffer allowed for automatically selected receiver buffers for TCP socket. This value does not override -- 2.34.1