Article View: linux.kernel.netdev
Article #27308Re: [PATCH v1 net-next 03/10] tcp: Move struct tcp_plb_state to struct tcp_sock.
From: netdev-bot+sashiko
Date: Sat, 05 Dec 2026 09:17
Date: Sat, 05 Dec 2026 09:17
58 lines
9942 bytes
9942 bytes
Thank you for your contribution! Sashiko AI review found more severe issue(s) in other patches of this series. This mail is only an FYI, in case you want to address the nit picks below when you respin. Low priority / nit picks for your consideration: - [Low] Stale comment after the field rename. -- tcp: Move struct tcp_plb_state to struct tcp_sock. This commit removes struct tcp_plb_state from struct dctcp. Its two fields now live directly in struct tcp_sock as plb_consec_cong_rounds and plb_pause_until, so other congestion control modules can use PLB later. The tcp_plb_*() helpers now take only the socket. dctcp_init() no longer clears plb_pause_until, and tcp_disconnect() resets both fields. > diff --git a/net/ipv4/tcp_plb.c b/net/ipv4/tcp_plb.c > index d101a424c444c..26ca53d6fb9d8 100644 > --- a/net/ipv4/tcp_plb.c > +++ b/net/ipv4/tcp_plb.c [ ... ] > @@ -70,19 +71,19 @@ void tcp_plb_check_rehash(struct sock *sk, struct tcp_plb_state *plb) > * RTO event that constrains PLB rehashing. > */ > max_suspend = 2 * READ_ONCE(net->ipv4.sysctl_tcp_plb_suspend_rto_sec) * HZ; > - if (plb->pause_until && > - (!before(tcp_jiffies32, plb->pause_until) || > - before(tcp_jiffies32 + max_suspend, plb->pause_until))) > - plb->pause_until = 0; > + if (tp->plb_pause_until && > + (!before(tcp_jiffies32, tp->plb_pause_until) || > + before(tcp_jiffies32 + max_suspend, tp->plb_pause_until))) > + tp->plb_pause_until = 0; [Severity: Low] This isn't a bug, but the comment above this block in tcp_plb_check_rehash() still uses the old field name: * end. We clear pause_until to 0 to indicate there is no recent * RTO event that constrains PLB rehashing. This patch removes pause_until, and the code below the comment now uses tp->plb_pause_until. Should the comment say plb_pause_until? The later patch "tcp: Factorise tcp_plb_rehash()" moves this comment into tcp_plb_rehash() without changing it, so the old name is still there at the end of the series. [ ... ] -- Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261204085551.1518105-1-kuniyu%40google.com
Technical Details
Message-ID:
<179646227262.3146.6670251095425706683@kernel.org>Path:
mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377909-linux-kernel-netdev=dewy.ruReferences:
<20261204085551.1518105-4-kuniyu@google.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377909-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH v1 net-next 03/10] tcp: Move struct tcp_plb_state to struct tcp_sock. Date: Sat, 05 Dec 2026 09:17:52 +0000 Organization: Usenet Network Message-ID: <179646227262.3146.6670251095425706683@kernel.org> References: <20261204085551.1518105-4-kuniyu@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2995519"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:flJT0LNxIUsX+0Jv/Nfw6HQam00= sha256:/ZKhhUlmjI36v15XqeNV1po6csVgVSokCmbamR/qZK8= sha1:TjgVRU39kTXmwsDojVptn5YH5Uc= sha256:tlMv6ql7SEI/gbl5mR4TZnWMhkojCfgtMhM5sCFo/DY= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 7A9ED117DC3; Sat, 5 Dec 2026 12:18:11 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.642 X-Spam-Status: No, score=-3.642 tagged_above=-9999 required=6.31 tests=[DKIMWL_WL_HIGH=-0.142, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id E_AxaXMo3Bo3; Sat, 5 Dec 2026 12:18:07 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-377909-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 6737A117D6D; Sat, 5 Dec 2026 12:17:59 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id EE0942996D; Sat, 5 Dec 2026 09:17:56 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796462274; b=j54tfPXqr1RfrV1274SrWxrhwAHkciiqYAlHQn36KIXU7iFjj6g34UktfujwctIYOPtD F4SOi6xs2+jdi2/SSCUAsPxP4N/xqkvHp8Folp8iZWDCHqMXRX9sXtt7K3h7qvdhkLePW WjrQN41xWXaehhR+9rwtLBmWkVKSa78DEvAs61dH5AdkMDxUyapZkvWxFA4U2OfHD17bh Ch6p7BtSyOpKlVhAphl5QCBmggKD+smtRCedVHskWJO3qXKIfiF9aNV21iBpNOxxKCZUu mHvw/4evU83C4/pp9oohvLeTZJAIvHlVNGHc/2JcwtOK08oTN2L8Jwu1AScXPSCjC9A== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796462274; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=KYs5q78gxyiMidQhqupdjVJDxXUnUMFPdbwuHHlI0lg=; b=3/Aw0UXa3fLbIV1miIHtbSIRTthtXj9wZFd69CNUgteHJbYk6UxemZJxY7bm1nkHv4VH ooU1Pm6T8xd9dplx56cuwn/O2EG1QtDAekWqmoITDHkkpLijVQoBMN7R7IXyok1OBuF4v QUu3LsKUg9r//g4Ar6AZNLvweYTPsmbGiI0hK/9Pitbz4YwmxNV1+/iKBlKGa4kCLGFc8 9Yyg0H/Fz2s7/NhWIwRKn1A/MgsEZvh8bdK9wGqLIPQCwEZj4pA5o4vUELt3vmjqr6fct b+rD9HyndlCNWon2VLa2JT0jfwCe2MqDIRCQzw2Az+GoS+Sx+YFg3JUAVh8Dl9ESXpA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="cqjjpFT/"; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BAC2E606A335; Sat, 5 Dec 2026 09:17:54 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=cqjjpFT/ X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796462273; b=paQVPztEGFrBbQByAYlM7h4H1DPdHu+VWoMZJmaAEBE79t1KEqn6h8lZWaVPfocBMxgb t8aURXh0mnBrJ7hZm7uKUMDhQklrqYmsDvfzcSUe+EqetTlMTOawIYOJRrM1uGjaj4rxM TAANdW9LVj7VLQOse8t1/qYDvhf4h5r4kY3o82Y3r4Uz+8AviYpJ2X+gpKSoqq2AHgIRm 6fFLt73HWUrWV96PE4/vXPKwjnXSy7H7eskJE2TYX9OYgA02bxvMGWpYpOR145Ev6hPC9 6tVjt5G2PyILKzG0dOrk6WkqTT275sjifCIAQwjob//BrqLG/I6XwQoCuD1IB6ik9tg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796462273; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=KYs5q78gxyiMidQhqupdjVJDxXUnUMFPdbwuHHlI0lg=; b=zUwvWb/ZWkXX7ZmNoW4aVWtYUNaV4imJst911naT725RtryiNMcfjIDzoXfM0mo5ItNM GGORpS6qaw5IDrYqfnPBi3MziuDuerG0jS8hna8D7cJjqV2pdhy0NoFgdo6YoeoI4w1Tf mZOq4IqDmHn7xgVfXUPO+rpsZoexNx8HyQsrgNWJiovW9iLb3TaU8O9l9LAEPFllR156p kqv/sKixn8IiV+1eVk8o5d56pdZqPZOEqgd3RCiIz/teoRW9piBHLRTFcfj5hz3vXPMDr Nyr6pMPelKjy47RD/9Eb+5BHabfe1BHke6a8boj0PuadUR5TqkEDsnH+1ndB1G42bVQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="cqjjpFT/"; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D7876606A322 for <netdev@vger.kernel.org>; Sat, 5 Dec 2026 09:17:53 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 199E61F00936; Sat, 5 Dec 2026 09:17:53 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796462273; bh=KYs5q78gxyiMidQhqupdjVJDxXUnUMFPdbwuHHlI0lg=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=cqjjpFT/JkTIB+lS7qCVBltlndcCDIV0CW2FbTvHSdzAsPXd1NsYJOQA8imvg+mxI QOUNiR/lwO5yTuFugIfXxKLCKcAAqfSb0Dz07XQXg4zBSWPWvXrz/snt6eByBK6wFM c7wjvjmswN3mlUmK5Sq6EkOkhOxbA1zo0v9XKl/qBnlH3LminGRLR/Yuj7KcF3Ga5H 1IovcXusswkY/bb1+39D0JOH88smHy9nFbigPeFPIw2y+L2fBe4BwYI0blJy7rGILE 9AxSWM/E2S1tuwNQ4sekpUr/jgnbLics9OOiFFfnNl2FJ97Sgtzm5JOMzFAQl8o/mO xyKhsO+SWKU3g== X-Cc: edumazet@kernel.org, ncardwell@google.com, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, willemb@google.com, horms@kernel.org, ycheng@google.com, kuni1840@gmail.com, netdev@vger.kernel.org X-In-Reply-To: <20261204085551.1518105-4-kuniyu@google.com> X-sashiko-severity: Low X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list