Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3266085rdb; Thu, 16 Nov 2023 05:14:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IGt/8W+GiVJhIVzXzrE2LgAacUTOT5NIQ82XxcfhHRy1GzLz7DUvszsR+7b968A6UoXyU98 X-Received: by 2002:a05:6a20:158e:b0:17d:faed:603c with SMTP id h14-20020a056a20158e00b0017dfaed603cmr2350418pzj.11.1700140451263; Thu, 16 Nov 2023 05:14:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700140451; cv=none; d=google.com; s=arc-20160816; b=IlRaGTwdq+seYgxx2+CVTZSMNwOwl/0pu1Ib6rxqbNFLoOtOFoGaSii5MC2kYRBbxz dNf4QakIiwkTkwoLrEtjocjKIF/taIZZWEqI4D8dmUi1JkuoCImQMt1BNKQFN57APykj R77MGheHWYm8XDUfMiM7PdFW4E+w4/umPDnpWJHFQ7kHr+knhdwBCZC/91jiPmDGbvv7 H0dMW/J9ZFSUH8PAk2xgxHoxcNllNAxH0TmPDaJkOx3ahREFyZGYt1NRb1jgvuXPCT64 Uy7UPTGKppB6IkIncmsTjJNghevon8UO5KLNchl6f0q/q3HkSRdowz2boWNnPZCwM4k0 kytA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=56qEDo8yIqTUJHP8P2HT8aLUWZCphDYXUxLI2O0HehM=; fh=icnuzcdbhXgwjK0pgvJXK7xplE+Och0jvyZv2PxZJ18=; b=NPipKHNMZBl7hHdVeXiArY/cjiUz8Cem5RN5mdTFC0XHNS/5bACaPXOjB3NvPIP8JE si+lvfYXYJNKG8ZmiBmEgTYU8UKQm5MWBCWImM5gb0DOPiuajzu4p4z6OxZaORJ8NCkO MHLkyt7oGxUy3grYUsre2uRMohjveQGgUXknImtHaa+CewxESC9oiBwUFvUkRITzJ1Nf Pt1jMQxxkTNHBbCT8mdrKiNyaZjjbZT5ElNkYi/Sk3sgyfK+6b31JgGCUY4ZRELGGZj0 ztUPj9blMkysYJGMksJwj2ZWwjjZzz4kC7OM6UiKtFa9uR8czSvgTh1C01ms+4Dc+Tdn gqOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="dkZ/Voif"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id cm7-20020a056a00338700b006c4d06bc29csi3292533pfb.302.2023.11.16.05.14.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 05:14:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="dkZ/Voif"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 539DF81C0C99; Thu, 16 Nov 2023 05:14:08 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345123AbjKPNNM (ORCPT + 99 others); Thu, 16 Nov 2023 08:13:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345077AbjKPNNL (ORCPT ); Thu, 16 Nov 2023 08:13:11 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 158B519D for ; Thu, 16 Nov 2023 05:13:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700140387; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=56qEDo8yIqTUJHP8P2HT8aLUWZCphDYXUxLI2O0HehM=; b=dkZ/VoiflATUq+cxHyx1+BGhmqRVgAa60JfOqxBiBsM0lg6OmqteHA37tpAJBRGRI3eKWD xVqYRIq/V4d9a2gyH/3kArHL2GOPCfaBhg5lWl+bsoSk/z6K/In8QuswXMH4rJ7LTB258X vX7OP7Nzibc8TKVu9nVC1aIslWHpjaw= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-375-Ddy73NA3Nwaye6z-spbp7g-1; Thu, 16 Nov 2023 08:13:04 -0500 X-MC-Unique: Ddy73NA3Nwaye6z-spbp7g-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7E3E51C05193; Thu, 16 Nov 2023 13:13:03 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.42.28.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id 35F5F2166B27; Thu, 16 Nov 2023 13:13:02 +0000 (UTC) From: David Howells To: netdev@vger.kernel.org Cc: David Howells , Marc Dionne , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-afs@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH net 0/2] rxrpc: ACK handling fixes Date: Thu, 16 Nov 2023 13:12:57 +0000 Message-ID: <20231116131259.103513-1-dhowells@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.6 X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 16 Nov 2023 05:14:08 -0800 (PST) Here are a couple of patches to fix ACK handling in AF_RXRPC: (1) Allow RTT determination to use an ACK of any type as the response from which to calculate RTT, provided ack.serial matches the serial number of the outgoing packet. (2) Defer the response to a PING ACK packet (or any ACK with the REQUEST_ACK flag set) until after we've parsed the packet so that we carry up to date information if the Tx or Rx rings are advanced. David --- The patches can be found here also: http://git.kernel.org/cgit/linux/kernel/git/dhowells/linux-fs.git/log/?h=rxrpc-fixes David Howells (2): rxrpc: Fix RTT determination to use any ACK as a source rxrpc: Defer the response to a PING ACK until we've parsed it include/trace/events/rxrpc.h | 2 +- net/rxrpc/input.c | 61 +++++++++++++++++------------------- 2 files changed, 30 insertions(+), 33 deletions(-)