From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AD8683054CC for ; Thu, 6 Nov 2025 12:03:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762430636; cv=none; b=tK6cAptpWqyqPZ/2spsvrVF8wTgtedy32H9zGNfgdIrxxNeZAIbN9Dv6t9+mpM+FaEp5Ar3g1Nj+sts+VDxfb11WKa1Gzgs9GoHfOYcT62wt2NL8zlp21tpHMh7ciUpVDCDbkBDReWkc+ElYlvqjcJFGDGUYi81jwb5KfeGgXcU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762430636; c=relaxed/simple; bh=v9zYAiaJDgaVQYcRDd7YfoPoVoAk9XCmhHvvjCZbve4=; h=Message-ID:Date:MIME-Version:Subject:From:To:References: In-Reply-To:Content-Type; b=TIIg28oT7K0N6eq1o7kx4EOjXSTK2ftyBycGuloMSz3pWQRWwupV/dkAWzXsV2qgJusbuFfG9WX+nehqBiyCQzgL4UqxruHo0ow5W8u/CiWsNQuSSNVzxlzZPTrJnnFz+ypvSEDoq+z7symLtbyy0VDQ2oeXJ/PQ94wNL6N4iyw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=dqe05Yjp; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=qI/KPMzH; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="dqe05Yjp"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="qI/KPMzH" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1762430633; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ueWgB3UuWMfwahhLGkCf04/sJ0pj16YsiviBfXwtyZQ=; b=dqe05Yjph2qfSWAzXpsqA0nxsqVXFVJv1kzB4ZFPvtf+QE9GpVcz5RNOfRFzOsG6miTq2K SAYRySzV8M5L17NIFi7gJJ9iJ/R/kRQDCDNBtRn5lNsTNQctxjRMUGPdsagR3sCO0BG3Vu ed312WjKA15WkQPuJ8CZBkvqq87WcIk= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-170-WCzE6uDVOCGsv0armCq-ag-1; Thu, 06 Nov 2025 07:03:52 -0500 X-MC-Unique: WCzE6uDVOCGsv0armCq-ag-1 X-Mimecast-MFC-AGG-ID: WCzE6uDVOCGsv0armCq-ag_1762430631 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-471168953bdso11386735e9.1 for ; Thu, 06 Nov 2025 04:03:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1762430631; x=1763035431; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:references :to:from:subject:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=ueWgB3UuWMfwahhLGkCf04/sJ0pj16YsiviBfXwtyZQ=; b=qI/KPMzH2fpKbal+l3E7zR3TnvZeJu9i7UA6GyY3yXkGNiCLCXPfYUZY093x1VPRhz 1nNszLnZbIwDppOJWC08vNTPcWKUg/4WC2awORe8uRytY+r1yLOiGR9+QqvZNPjGvhI+ dBhGOhIyz/F464piAfkfvAfly7G3d/5BKX5p86cPes+/8qrPFeBhTtrvntxHJqqTAyov 8u/0BuE4nppDQvL6HKR0mG9XLgO9Abu0+3UkLmemeKxFU4OFzv+RiSnOCzw0RDAL9sgd ee1kJbJiLXV7jSHI8lfg7Kp7nsAxIYDKmN5wBs9f7tghfh5AIb7U5LFLIuX+XsJdUmO2 8xow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762430631; x=1763035431; h=content-transfer-encoding:in-reply-to:content-language:references :to:from:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ueWgB3UuWMfwahhLGkCf04/sJ0pj16YsiviBfXwtyZQ=; b=hLtwfkTDL+911QuOnwEHASXVBnxFuKCEoIeJa/QdpdGjFOy3AOEs9AZDw8w8h9NUa1 UmqPln3xC6AUv6tCGW9twUlm5BI2JYUbMcBq+51bYduaMB3/OGxh5b77bg60L07B3xXw 4BZT+eX5fNLPv/7lHj2xJ4NQBNLXzNL/AG/4aDZNchaxUUCp1yydFX/+1c7eHAqU16Cj /tvOR1cpPEhKo38hm0VW3aHfdvJO/lH4qwXCqf4d+QyzqgqdpLECSavAjAHCrDeV9VkZ 1XgRXCfowg9logp1wlqR1focNor3LOoJNP6vEXIqi6YtDrUNRpDPRvNYepcI+Zs4DLsJ I/Gg== X-Forwarded-Encrypted: i=1; AJvYcCXGSkeUaJo0RbFmFPQ7j5IDVR6O96/HjArnqLQDfNRLSE/KIp/p8mb1ImvX7Qut8r+YpZp6QVZrsrp7Ny9yAtQ=@vger.kernel.org X-Gm-Message-State: AOJu0Yy0V+A830LlsYCw6dYcEmFQ1+KlzaWWIqa6i+nfkm7HBBfFvD6d lJ+wYp8acg1O0dxpHNBEs+q2tZRuU9AaTIa2e1UhgNRCqFT0wwrZ/Lo3s6J73b+2CP/AoswGbgl P3FNNF3qgCLCgwVnh4JTCRvvam8H7sYxzBPp9WOfsU8ZapdHX4e8gSwycNMJZsrtPugcGgw== X-Gm-Gg: ASbGncu6WFcufkdLEdoozbh4JsjxO0uhuB24wqzzeMTBPKpDXyPXJTuhfQs+u1BabMe qjmHqWA0/JMuuud4IvVS1sNTsSP7pm0+Vju2cWHUzkgNiIwEx2XzWCIU2DIJRzz8fWD6b6qvGKk sT/e/BNCLdmT8q3QdBkwkpd3ipgBHZdMvwkDx33E8TwLfabwoAVBYS11QPEaQEd1sTVt3yLxiQ4 ZHMOUI63jsdMhxApgMbQNMyNmpMdBbKQ8dfIZ+JQDdLjiS6SBzCseO9jWCD3xSWkBdHJChnceXT tY9gDdie0l8WnZ5fGMUpKi8GsW8kg9YC66Q9P0Zly5w7KEZ2TnGMLRUpsKaYD7yJ6jEGrhpQm8R yOw== X-Received: by 2002:a05:600c:a39a:b0:475:d9de:952e with SMTP id 5b1f17b1804b1-4776728d457mr11280075e9.1.1762430631023; Thu, 06 Nov 2025 04:03:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IFXHeCbTPXP2ChPwuD9fei6bqVA6QG1MQwNS8dtmzbVKzxYBA9LAe71TTJsAmwhSLucuFcwkA== X-Received: by 2002:a05:600c:a39a:b0:475:d9de:952e with SMTP id 5b1f17b1804b1-4776728d457mr11279615e9.1.1762430630560; Thu, 06 Nov 2025 04:03:50 -0800 (PST) Received: from [192.168.88.32] ([212.105.155.83]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-477624f804esm44269685e9.5.2025.11.06.04.03.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Nov 2025 04:03:50 -0800 (PST) Message-ID: <544ea239-525e-4ece-9523-0ddf42e99af3@redhat.com> Date: Thu, 6 Nov 2025 13:03:47 +0100 Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 net-next 09/14] tcp: move increment of num_retrans From: Paolo Abeni To: chia-yu.chang@nokia-bell-labs.com, edumazet@google.com, parav@nvidia.com, linux-doc@vger.kernel.org, corbet@lwn.net, horms@kernel.org, dsahern@kernel.org, kuniyu@google.com, bpf@vger.kernel.org, netdev@vger.kernel.org, dave.taht@gmail.com, jhs@mojatatu.com, kuba@kernel.org, stephen@networkplumber.org, xiyou.wangcong@gmail.com, jiri@resnulli.us, davem@davemloft.net, andrew+netdev@lunn.ch, donald.hunter@gmail.com, ast@fiberby.net, liuhangbin@gmail.com, shuah@kernel.org, linux-kselftest@vger.kernel.org, ij@kernel.org, ncardwell@google.com, koen.de_schepper@nokia-bell-labs.com, g.white@cablelabs.com, ingemar.s.johansson@ericsson.com, mirja.kuehlewind@ericsson.com, cheshire@apple.com, rs.ietf@gmx.at, Jason_Livingood@comcast.com, vidhi_goel@apple.com References: <20251030143435.13003-1-chia-yu.chang@nokia-bell-labs.com> <20251030143435.13003-10-chia-yu.chang@nokia-bell-labs.com> <4eef8fe1-b2b8-47c8-a21a-bcb4b75c3a0e@redhat.com> Content-Language: en-US In-Reply-To: <4eef8fe1-b2b8-47c8-a21a-bcb4b75c3a0e@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 11/6/25 12:56 PM, Paolo Abeni wrote: > On 10/30/25 3:34 PM, chia-yu.chang@nokia-bell-labs.com wrote: >> From: Chia-Yu Chang >> >> Before this patch, num_retrans = 0 for the first SYN/ACK and the first >> retransmitted SYN/ACK; however, an upcoming change will need to >> differentiate between those two conditions. > > AFAICS, send_synack is invoked with a NULL dst only on retransmissions. > Perhaps you could use that info instead? moving forward and backward a > counter is not so nice. ... except you need to propagate the information to nested call. Possibly adding a TCP_SYNACK_RETRANS synack_type would fit? /P