From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.222.197 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796183822; b=m8q5fDXyJWUnBkIL2qXzhBykE1+dbE+gOSOYe77JRASugmE9TFPv1sH5wyUOnLjLi4dS XTrQyerEUHFEZNYLfWb4zmIWa8xjD8cLsa4wD8/00enzHfY+K+8Wj2AmYoqsSC9iWPtQh 6vWZLW76zm5eq4uUnPjeKlrIgjLfzQ8fjmJua2W3T1WOAbki9nIQRBivz5uJpUUd1H8Wf G9Xl4R9Egek/jRFDv92FwYFLRjly9UGQGFH1B47ozupVvvyAu4+AY376/eVp4UhQ33I9Y GLVmO7xCmVokt7nLEDZBJCcpz7ejOhjnr/AKmgyjUXqbHVA3knspnkDHF9BFgLFVOpA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796183822; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:In-Reply-To: Mime-Version:References:Message-ID:Subject:From:To:Cc:Content-Type; bh=gBmqXFvANIrcaJzs5DjPJGbTJXco1zV3yW6p+Y/Bk4g=; b=daE5MfN+PDFaLt+DIR9nv943pKi+0psnCOObbIUBEOaESVO2nPhnkfLAPJqlDsHI9+mY CH3kVheiN4K8p8R/9/+zvmX+n9a6+PRJVJLPGM0wmHsdc8uSVl3eji6XXjgX8a8kgRoE+ tTX+IRjKN7EfueR23/KiAgfPy9CeG5NYea7RwkN2t+026IZRoI3uzxEsr6EyRwi0oaMWE a7m8NofvJsTQgYQucUEn57qnpVAJUYDCU0N44alAD6e8nx8vFnqIz5klH2ClL0weG1doZ V8CMNAZoXFtIkXiBzQEqcW7OymCICoZtkVqVdMOLURKMlcZSOVyMEbLA8LHPdAoawVQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--willemb.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=g6+HumFD; arc=none smtp.remote-ip=209.85.222.197 Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A1450606A31A for ; Wed, 2 Dec 2026 03:57:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org A1450606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--willemb.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=g6+HumFD Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-93cb7f9bb86so2387105985a.2 for ; Tue, 01 Dec 2026 19:57:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796183820; x=1796788620; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=gBmqXFvANIrcaJzs5DjPJGbTJXco1zV3yW6p+Y/Bk4g=; b=g6+HumFDUCp9GzQjnljpUOEvoA3MBhqmmSbx0axNPah2tB1V009vLoM0XA0WBfQplI gn4K29V5/4R1ah38vWg//BjKMDXi6wfLEW/CcjRq9sWCCvAXrS/E0nJu3w5NTQxaOM5Q 7g6fzZVd0NDOOaPnPSnH4Fpb4LXI4Wa2vXWpDpfU9alFPEsIfBrsNpJ/I5lXpgOGm5si j1K1iP5b7thOxxVaxnk2LmF/4uBKypsPPJz7SbHPyhjhHCAsyxxRGf3agoZ+h2X4zrEy FdHwFKzE54don0auErycW4O6T4CS/YT4K3Hr3c5eQqWCuFrZsNajB4lPntvdf3FWukp1 AQmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796183820; x=1796788620; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=gBmqXFvANIrcaJzs5DjPJGbTJXco1zV3yW6p+Y/Bk4g=; b=eG1mHVeI44yGSQoCRDQLCzaD6E0Yfu4XYnL/hFb7D0UkT/K0SXMAtX/regLbIvbXbW MmENjZwILadvYKpSgUyc3pS+vIx3iY+AjaWH9J3cxVum1+UkisZpwM006HcWLI8BrUmn Gnrf+6wblhiBZfhJoad72nLfL2mYR+saVEJ2JcAo02BbdO6lvLa1E8R9tl8ST02IcbBA o+COPKEJu78twvs+Sbshn5Hiy+F1OPVtaLa+0aNq7FTicEiXK487NFKRJp4/xMBahK9V Oft/+6uhOy+PvW/wXboVUZeWpXC/HEetPPVj7J0HviI8Tso4vv1od8W6uR+v+f/u21Q7 /8bg== X-Forwarded-Encrypted: i=1; AL+hErF53v6OeInFTsGycbxLJtMDeR6Q+6AidJji3yEaWoS9i7d/aT0wlVbwFlBA5yh8szRJn5ySUCA=@vger.kernel.org X-Gm-Message-State: APuU4Z+OKnuD1ajUxGvQaNfC2BuaTlBhAROUTdfOneV7jNefkrNq7XxI FBTZF3QbCoI8CLeFZuY9Wo0N6N8WO/XG2h/qRuF4BBW7+GTeThvi47e75dXSgytlp0cLByoXmuI wHcwmTnLJ0w== X-Received: from qkcbr2-n1.prod.google.com ([2002:a05:620a:90c2:10b0:93c:2c1a:736d]) (user=willemb job=prod-delivery.src-stubby-dispatcher) by 2002:a05:620a:44c2:b0:93e:920c:c00e with SMTP id af79cd13be357-949ba95e5b6mr7319435085a.21.1796183820294; Tue, 01 Dec 2026 19:57:00 -0800 (PST) Date: Tue, 01 Dec 2026 22:56:59 -0500 In-Reply-To: <20261124161302.4044422-1-dhowells@redhat.com> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 References: <20261124161302.4044422-1-dhowells@redhat.com> Message-ID: Subject: Re: [PATCH net v3 00/10] rxrpc: RACK-TLP fixes From: willemb@google.com To: David Howells , netdev@vger.kernel.org Cc: David Howells , Marc Dionne , Jakub Kicinski , "David S. Miller" , Eric Dumazet , Paolo Abeni , Simon Horman , linux-afs@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes David Howells wrote: > 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(-) Please review the (medium and high) sashiko findings. Also appears to have a conflict with pending patches.