From: David Howells <dhowells@redhat.com>
To: netdev@vger.kernel.org
Cc: David Howells <dhowells@redhat.com>,
Marc Dionne <marc.dionne@auristor.com>,
Jakub Kicinski <kuba@kernel.org>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>,
linux-afs@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: [PATCH net v3 00/10] rxrpc: RACK-TLP fixes
Date: Tue, 24 Nov 2026 16:12:48 +0000 [thread overview]
Message-ID: <20261124161302.4044422-1-dhowells@redhat.com> (raw)
Here are some fixes for AF_RXRPC's RACK-TLP implementation. It's split
into a number of patches:
(1) Fix a case of incorrect time unit mixing.
(2) Fix three cases of integer truncation in time unit conversion.
(3) Don't carry the in_flight value across (re-)transmission in
rxrpc_tlp_send_probe().
(4) Mark reneged ACKs (ie. soft ACK->NAK transition) as lost so that they
get retransmitted more quickly.
(5) Fix the RTT calculation for an ACK that's marked lost and then gets
ACK'd anyway.
(6) Do the congestion control retransmission timeout procedure when the
RACK-TLP RTO triggers. This bit got lost when RACK-TLP was
implemented. RXRPC_CALL_RETRANS_TIMEOUT is reduced to providing info
in the rxrpc_congest tracepoint.
(7) Fix shadowed limit variable in rxrpc_transmit_fresh_data(), thus
restricting TLP probes to the number of (sub)packets specified.
(8) Fix detection of TLP probe responses in a couple of ways: don't detect
a probe by sequence number if one isn't in flight and check dismissed
out-of-order ACKs to see if they're TLP probe responses.
(9) Count in-flight packets directly by tracking them in the rxrpc_txqueue
structure rather than trying to derive the quantity from values that
change at different times. Special handling for TLP probe
retransmission of an already-ACK'd packet is added (the ACK parse
ignores re-ACKs of already ACK'd packets) as is TLP probe loss
handling on RTO expiry.
(10) Fix a number of things in the RACK-TLP code:
- Make the "in fast recovery" flag available to RACK-TLP code after
the Reorder timer expires.
- Arm the RTO timer if no other timer is running and there is unacked
data and update it if already running and new data ACK'd.
- Initialise the TLP state in the correct place.
- Don't reset the xmit timestamp in rxrpc_rack_mark_lost(), but rather
in the callers where appropriate.
- Correctly check the flight size.
David
The patches can be found here also:
http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=rxrpc-fixes-2
Changes
=======
ver #3)
- Rebased on latest net/main.
- Dropped Reviewed-by/Tested-by tags.
- Sent the RFC number fix separately (to net-next) and dropped from this set.
- Fixed Sashiko-reported bugs[2]:
- Fixed a time unit mixing bug (comparing us and ns).
- Fixed a time unit conversion integer overflow bug.
- Mark reneged ACKs as lost.
- In rxrpc_tlp_send_probe(), don't carry old tx_in_flight value across
(re-)transmission.
- Move the decrementing of tx_in_flight for newly acked packets to
rxrpc_input_soft_ack_tq().
- Made RTO timeout notify the congestion algo and cause that to change
state if appropriate.
- In rxrpc_rack_update(), handle a packet being marked lost and having
its xmit_ts reset followed by an ACK arriving anyway.
- Update the RTO timer if some data is newly acked.
- Fixed other issues (found by eye and also raised by Claude-opus-5-5 run
locally):
- Fixed more time unit conversion integer overflow bugs.
- In rxrpc_transmit_fresh_data(), fixed shadowed limit.
- Pass TLP probe indication down to packet transmission so that all the
call->tlp_* bits are set in the same place and so that members aren't
left unset.
- Don't consider matching packets (by seq) as TLP probe responses if
there's no probe in progress.
- Add a function to end TLP probing, and make that decrement tx_in_flight
for the TLP probe if it involved a forced retransmission of an already
acked packet.
- Added TLP probe/probe response loss detection on RTO expiry and made it
reset the probe state.
- Account the in-flight-ness of a TLP probe separately if it's a
retransmission of an already ACK'd packet.
- Removed call->tx_nr_sent, ->tx_nr_resent and ->tx_last_serial.
ver #2)
- Rebased on latest net-next/main.
- Fixed Sashiko-reported bugs[1]:
- When performing TLP_send_probe() [rfc8985 7.3], don't do backoff. Note
that backoff may already have been done by rxrpc_resend().
- In rxrpc_tlp_calc_pto(), clamp call->peer->pmtud_jumbo to be at least
1.
- Added a patch to replace the way in which the number of in-flight
packets is tracked to avoid estimating using values which aren't all
updated at the same time.
[1] https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260925191520.2206700-1-dhowells%40redhat.com
[2] https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261020201258.290827-1-dhowells%40redhat.com
David Howells (10):
rxrpc: Fix incorrect unit conversion
rxrpc: Fix time unit conversion truncation
rxrpc: Fix carrying of in-flight calc over retransmission
rxrpc: Fix ack parsing to mark reneged ACKs as lost for RACK-TLP
rxrpc: Fix RTT processing for a presumed lost packet getting ACK'd
rxrpc: Fix lost driving of congestion management retransmission
timeout
rxrpc: Fix limit on packets to be transmitted in one go
rxrpc: Fix detection of TLP probe response
rxrpc: Fix counting of in-flight transmitted packets
rxrpc: Fix RACK-TLP implementation
include/trace/events/rxrpc.h | 11 ++-
net/rxrpc/ar-internal.h | 42 +++++------
net/rxrpc/call_event.c | 54 ++++++++++----
net/rxrpc/input.c | 83 ++++++++++++++-------
net/rxrpc/input_rack.c | 136 +++++++++++++++++++++++++++--------
net/rxrpc/output.c | 22 ++++--
6 files changed, 246 insertions(+), 102 deletions(-)
next reply other threads:[~2026-11-24 16:13 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 16:12 David Howells [this message]
2026-11-24 16:12 ` [PATCH net v3 01/10] rxrpc: Fix incorrect unit conversion David Howells
2026-11-24 16:12 ` [PATCH net v3 02/10] rxrpc: Fix time unit conversion truncation David Howells
2026-11-24 16:12 ` [PATCH net v3 03/10] rxrpc: Fix carrying of in-flight calc over retransmission David Howells
2026-11-24 16:12 ` [PATCH net v3 04/10] rxrpc: Fix ack parsing to mark reneged ACKs as lost for RACK-TLP David Howells
2026-11-24 16:12 ` [PATCH net v3 05/10] rxrpc: Fix RTT processing for a presumed lost packet getting ACK'd David Howells
2026-11-24 16:12 ` [PATCH net v3 06/10] rxrpc: Fix lost driving of congestion management retransmission timeout David Howells
2026-11-24 16:12 ` [PATCH net v3 07/10] rxrpc: Fix limit on packets to be transmitted in one go David Howells
2026-11-24 16:12 ` [PATCH net v3 08/10] rxrpc: Fix detection of TLP probe response David Howells
2026-11-24 16:12 ` [PATCH net v3 09/10] rxrpc: Fix counting of in-flight transmitted packets David Howells
2026-11-24 16:12 ` [PATCH net v3 10/10] rxrpc: Fix RACK-TLP implementation David Howells
2026-11-24 16:18 ` [PATCH net v3 00/10] rxrpc: RACK-TLP fixes netdev-bot+sinfo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261124161302.4044422-1-dhowells@redhat.com \
--to=dhowells@redhat.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-afs@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marc.dionne@auristor.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®