From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=fail (p=quarantine dis=none) header.from=redhat.com Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by passt.top (Postfix) with ESMTPS id AC5505A0269 for ; Mon, 30 Nov 2026 23:04:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796076268; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Cn4iMjwkBFn9r9KL4jZ35WCJsPYTdP003rF/KD8Yv/0=; b=DEzyTAfRxTnjVTdxeYD2lzjFdu5UpNGyFiSINmuUBJtEFb2esvU5l8DUGWP+fY6Q94SE// nUEYRJ8xlCtQUUpcbelAiLuIDEYXzsNyrhV4Uk59+SYvxfMxSj1IsMOJA3dUzp6J5FnGUg 6HKcDv9F7I5w1c0bLeuVTrqWga/pP/A= X-MC-Rep: binary re single Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-375-hlXvQbzaMXyUMkukzpBMVQ-1; Mon, 30 Nov 2026 22:04:21 +0000 X-MC-Unique: hlXvQbzaMXyUMkukzpBMVQ-1 X-Mimecast-MFC-AGG-ID: hlXvQbzaMXyUMkukzpBMVQ_1796076260 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-4a35db2d6b3so78648465e9.3 for ; Mon, 30 Nov 2026 14:04:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796076260; x=1796681060; h=date:content-transfer-encoding:content-type:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :x-gm-gg:x-gm-message-state:from:to:cc:sub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2 X-Received: by 2002:a05:600c:3b83:b0:4b7:6b96:e431 with SMTP id 5b1f17b1804b1-4bb88822242mr800864265e9.28.1796076260183; Mon, 30 Nov 2026 14:04:20 -0800 (PST) X-Received: by 2002:a05:600c:3b83:b0:4b7:6b96:e431 with SMTP id 5b1f17b1804b1-4bb88822242mr800863845e9.28.1796076259698; Mon, 30 Nov 2026 14:04:19 -0800 (PST) Received: from maya.myfinge.rs (ifcgrfdd.trafficplex.cloud. [176.103.220.4]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6ae2dd55sm65516399f8f.30.2026.11.30.14.04.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 14:04:18 -0800 (PST) From: Stefano Brivio To: Anshu Kumari Subject: Re: [PATCH v5] tcp: Limit fast retransmit to one per loss event Message-ID: <20261130230417.59966654@elisabeth> In-Reply-To: <20261130064414.768566-1-anskuma@redhat.com> References: <20261130064414.768566-1-anskuma@redhat.com> Organization: Red Hat X-Mailer: Claws Mail 4.2.0 (GTK 3.24.49; x86_64-pc-linux-gnu) MIME-Version: 1.0 Date: Mon, 30 Nov 2026 23:04:18 +0100 (CET) X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: b_vOf4GIb4CO_BV0cUMzV7T3xVrIyuWOKnJP01G7Ju8_1796076260 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID-Hash: L2GIRDUACHRAABRPPGLVKKPSVTJY2IJL X-Message-ID-Hash: L2GIRDUACHRAABRPPGLVKKPSVTJY2IJL X-MailFrom: sbrivio@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: passt-dev@passt.top, Ada Urbaniec , Jon Maloy X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Mon, 30 Nov 2026 12:14:14 +0530 Anshu Kumari wrote: > Every duplicate ACK unconditionally triggered a fast retransmit, > even when the ACK sequence hadn't advanced. > > Guard fast retransmit on !conn->retries, and increment retries > after the first retransmit. This is a quick fix to stop the > amplification storm. Full compliance with RFC 5681 Section 3.2 > (three duplicate ACKs) is left to a later patch. > > As a fast retransmit is now accounted in conn->retries, the next > retransmission timeout is doubled (tcp_timer_ctl() uses conn->retries > as backoff exponent). > > In TAP_FIN_RECVD path, tcp_tap_window_update() returns true for any > non-zero window because of which tcp_data_from_sock() gets called > for every ACKs(even for unchanged duplicate ACK). If the send window > is full calling tcp_data_from_sock() re-armed the retransmission > timer via conn_flag(),so periodic duplicate ACKs could delay > retransmission indefinitely and prevent a half-closed connection > from recovering. Therefore, only call tcp_data_from_sock() when > the ACK or window actually changed. > > Link: https://bugs.passt.top/show_bug.cgi?id=224 > Reported-by: Ada Urbaniec > Signed-off-by: Anshu Kumari Added from v4: Reviewed-by: Jon Maloy and applied. -- Stefano