πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #23461

Re: [PATCH net v3 03/10] rxrpc: Fix carrying of in-flight calc over retransmission

#23461
From: netdev-bot+sashiko
Date: Fri, 27 Nov 2026 10:13
72 lines
10450 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] The commit message for "rxrpc: Fix carrying of in-flight calc
  over retransmission" explains the mechanism: in_flight was computed at…

--

rxrpc: Fix carrying of in-flight calc over retransmission

In rxrpc_tlp_send_probe(), this commit moves the rxrpc_tx_in_flight()
calculation to the point where the value is used. The value then reflects
any (re-)transmission done by the TLP probe. Before this patch it was only
refreshed after new data was sent, and not after the rxrpc_resend_tlp()
retransmit path.

Link: https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261020201258.290827-1-dhowells%40redhat.com

> rxrpc_tlp_send_probe() calculates the in_flight value at the top of the
> function and then doesn't use it till the bottom of the function - after it
> may have done (re-)transmission, which would change the value (though it is
> recalculated in one place).
>
> Fix this by calculating that value at the point it is needed.

[Severity: Low]
This isn't a bug, but could the commit message also say what goes wrong
because of the stale value? The patch is Cc'd to stable, and backporters
would find the user-visible impact useful.

In rxrpc_rack_timer_expired(), the timer mode is cleared before the probe
is sent:

net/rxrpc/input_rack.c:rxrpc_rack_timer_expired() {
    ...
	call->rack_timer_mode = RXRPC_CALL_RACKTIMER_OFF;

	switch (mode) {
	...
	case RXRPC_CALL_RACKTIMER_TLP_PTO:
		rxrpc_tlp_send_probe(call);
		break;
    ...
}

In the retransmit branch of rxrpc_tlp_send_probe(), the call to
rxrpc_resend_tlp() increments tx_nr_resent and may decrement tx_nr_lost.
Both raise rxrpc_tx_in_flight(), but that branch never refreshed
in_flight.

Suppose in_flight was 0 on entry: every outstanding segment had been
SACKed or marked lost, but acks_hard_ack was still before tx_transmitted.
After the retransmission, the old code then skipped this block:

	if (in_flight != 0) {
		ktime_t rto = rxrpc_get_rto_backoff(call, false);

		call->rack_timer_mode = RXRPC_CALL_RACKTIMER_RTO;

That left the RACK timer at RXRPC_CALL_RACKTIMER_OFF with no RTO armed
behind the probe.

Could the message add something like "no RTO was armed after a TLP
retransmission, so the call could stall until another timer fired or an
ACK arrived"?

-- 
Sashiko AI review Β· https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261124161302.4044422-1-dhowells%40redhat.com
Technical Details
Message-ID: <179577441120.3135.18228727853946391641@kernel.org>
Path: mbox-mo1.pugleaf.net!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-372636-linux-kernel-netdev=dewy.ru
References: <20261124161302.4044422-4-dhowells@redhat.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!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-372636-linux-kernel-netdev=dewy.ru
From: netdev-bot+sashiko@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v3 03/10] rxrpc: Fix carrying of in-flight calc over
 retransmission
Date: Fri, 27 Nov 2026 10:13:31 +0000
Organization: Usenet Network
Message-ID: <179577441120.3135.18228727853946391641@kernel.org>
References: <20261124161302.4044422-4-dhowells@redhat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="704084"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Lro0oUWOGgQzCmgLs4CCCnKzKFI= sha256:y3RQLx5yBa8Dv9UNrVwFv8RmqxiYWhDNrYa4F8QDjy8=
	sha1:A5q9RfnZ0NQmI2w4gp0xphJaKkA= sha256:NDJ1fVjBrKqfmgQGxQyZUTS9CTwxTXlxZAlUngsEnVQ=
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 3AA7C125F4E; Fri, 27 Nov 2026 13:13:53 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, 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 MiOWtbyBT09P;
	Fri, 27 Nov 2026 13:13:49 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-372636-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 6998B125F50; Fri, 27 Nov 2026 13:13:41 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id CED3565C6C; Fri, 27 Nov 2026 10:13:33 +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=1795774413;
	b=Wm+tZnh4RkUGfShpdJ+1UYHlDfJ1AWj4vrDzxPA3CituhDN21h/ocXRctUgxWsCsbF2n
	 gahe4+t1cN1taxTNFUXpSX7MkaO6bw+wc0QkMDm+Ih7OLHKFYEAHN2MIcI/Q+5mY9RKxf
	 gKu6beFtqi2TDx9btIDmqfg8pUGEFNs1fb2gXU2cLDOscN358ncWugjZCYEIVDKSIOiN0
	 KAJ+yZg7bt/tUkMknoR8NzjHHQWLSACExm1Hr1h67L4BCfIX4MyHExyXP862uus1tQU/Y
	 W6SFR0mAhlZPoYweHChHmp2ExhHN8CCvrozXaT3t08vKKpc9oCOKEVTX1qpEPjLuX6Q==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795774413;
	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=Cdp4y+NU/kVwGHCxRbY2Msr2auB6YOWOh/0ZbWxjaPM=;
	b=bKlwS/bcF8z4pugos6oquKgu6Qs+fLWAN7PB5pigPSn+vNsPDTbYRtD9F8ChaGtUMFbp
	 dJ11jHvBSpcA8F3QO6zipYl2rcIIN02ZWMQ9EWBcGEcpIlGtzzNHvjK2Inrj0ZILPfPZv
	 BmHhwGsGnQmMW/l4PzmB7kCVEZBNnLKQe4NT+6mUY2JfLiF9zgZn6cL9VKwf5pusMFeHH
	 cO0iHetxmzIEOc3/9Px0SXotuz6FjJMsiUeCHUJh74neCqC+2mTlR5TXLm1UnbPs7bD5U
	 4kyT0C4y9hx+ZsOF65dHa0ZHGo319ksn4wvfOIngUINpeWV2KScz1+Mfqrf2HfZwKZA==
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=MtN5IqiK;
	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 818B9606A327;
	Fri, 27 Nov 2026 10:13:33 +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=MtN5IqiK
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=1795774412;
	b=t8OzIWHRNF1afKIeOcw94S13TG/dcer14lel1wAhCOSfJnPxQ5UwoG3nq4pMR3T81QIZ
	 rhgyWsO+p5179dTfl5Wy/0n2FUH34k3I4TbqPRH+zDLV2PFpwIp9f6R+PUJb41lAMlZ3Q
	 xUUMRgbln6r23z5ScYqyK+WMw0xx9T++ufFIzQw8Mrze40WC+JrWw0DLuvvhe9NYW4wEe
	 B24p920t8v/tsV+a8Uozbulb09jDB/3qmzSC7CST2SCH7LZWtOc0KuY/Be7sXhXIRuxuY
	 54dB5wnd2PlX5SCMkg+k1QJ/3kR7STQm09Egm2sGdaT+4XzoUJPVqHtcenA3oLJRNXw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795774412;
	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=Cdp4y+NU/kVwGHCxRbY2Msr2auB6YOWOh/0ZbWxjaPM=;
	b=zKHR5y16O+fQ6UWW5rzZs12X97NPxq0+BAQ3/eTztF9jsdz9LTcO7KovbxwJfQY3j9SZ
	 vknpSGxW+FPlJTNqC/DfuxwKSEyLsFJ2fuIVYSTahrVOnU/m+iriyEhHjH9Q2fe13umpv
	 BzbvywkiXomDRB/8sMNiFPYeEDUjwGSdHWBJd6VUaBKXdLJSmXM5f4g1Z/9KSNO+zUgx7
	 44cn8iB6uvrYjbdi4yQiLvv64V/OiEsWLVdjZh6G0OwoyQmnoCQkXwhkKnmxkfu52rnp6
	 Q8o1KBXEKBjk9oza1DwHKUinZQh8g6ssqjRqbBdUNJPAzrGYYhG5ZVDKvvpFZmolQWA==
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=MtN5IqiK;
	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 A376A606A331;
	Fri, 27 Nov 2026 10:13:32 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 96B6D1F00897;
	Fri, 27 Nov 2026 10:13:31 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1795774412;
	bh=Cdp4y+NU/kVwGHCxRbY2Msr2auB6YOWOh/0ZbWxjaPM=;
	h=Subject:From:To:Cc:Date:In-Reply-To:References;
	b=MtN5IqiK0Le+qSmGizqREknUJkOENsWEDWxcFrWTgvyCt7Ar/tZRIJZZWnIxrk9G0
	 mpj2gfkRZvD97s4yMnStIWxgfGDoDXKk8gS8aX1qAHqrisMSgdLb4AgwvhPTmGm26G
	 StPTMRpsCHNm357pcD7Yduj2wvH3f/zxNXfVEg6zJDgtg7r8rZd+naCLKXLRC+XdO6
	 wPMuCFYHQnn6qIdZi6RQZVGFqJb1KcrFcIkevYZvBMAeA56qxZpN4eUQv1DhFxIItk
	 7TkNR5J1GAjOs2kXV0TrUHmjTzl2/+LI4h5fuUBW2/xK2o28w+vrXNiCjYvThaq0IH
	 fjTqEoC35U1fA==
X-Cc: netdev@vger.kernel.org, marc.dionne@auristor.com, kuba@kernel.org,
 davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, horms@kernel.org,
 linux-afs@lists.infradead.org, linux-kernel@vger.kernel.org,
 jaltman@auristor.com, stable@vger.kernel.org
X-In-Reply-To: <20261124161302.4044422-4-dhowells@redhat.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