[PATCH net v3 00/10] rxrpc: RACK-TLP fixes

From: David Howells

Date: Tue Nov 24 2026 - 11:13:29 EST


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(-)