Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7016187ybl; Wed, 15 Jan 2020 14:05:10 -0800 (PST) X-Google-Smtp-Source: APXvYqy7HUpFXlJD9WKIeBMd+aa9LxQdhwCejfFlb3JgMGSfSN4ywsfR98mJgNkmvj8Pwwbmg/QK X-Received: by 2002:aca:554d:: with SMTP id j74mr1745476oib.92.1579125910339; Wed, 15 Jan 2020 14:05:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579125910; cv=none; d=google.com; s=arc-20160816; b=Mug41h8NJ7penl4D//eo0hWLqMOTX0ZhQj82MA4vSqcOMRAEEErYFB3JiwTHvxiMhZ E8YM2rj++8KRfxvUsQRd+Of/RxyKpgSuqKPsWHYTBiMkCkGJeocH3fiANij/Z4tQTTeR wkNo7fscit8lMuJyqdbpGaVMoH9I1W2CPedH9aucuJ4Ac49yNGrk37cQLwa8OBhbkw+2 QCQPMRAUW1zuM0MBK8TvE2+on9RuNFB+5y0SzUb+40h4l8goyVMF+aXd8xKmaSjBpfyj CwdkLK6RRiOJ+NUNpurJes77iJikRHrRNLXUCeno1YSM/R3+uUlce0D53SO0gEo7jHA5 htWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=MT29APNVANjNiCqMGLTY6Pn11FM4vd7itz7ZNbI9B8s=; b=xgJ6t+svaPgN9VjCtqSA3jkf1ANuJ50zHwZrxb3FZ9Ngy+sW2baxlM8pdLOejR3JEF 3VoMW/PfTnEgiXuFgQH1mnoS6GUbzlvdFHc7pAosDRvcXaJ3Vnf4Wji484rZAriXpAgO xD4hUnXUylikQ1wM9hZsDkdCfKpjR/Qatn18+wEXOzQqT8sNalNdEOFS/hPBz4Nj2cEb H+ojuvmLk12MciYQ/JLy3zCL1pFht+lxIZUBn80iPbvHUeM+ard8+Luj8+EhhtDAM3Pp WbetrsRDnqmH1ur0lIZMrcNoQnpbJGt3xPZ9HAJ8M9jUkC5SwlEt4OI2GimgDP3wYd6y t9wA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a205si10410886oii.95.2020.01.15.14.04.57; Wed, 15 Jan 2020 14:05:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729835AbgAOVhT (ORCPT + 99 others); Wed, 15 Jan 2020 16:37:19 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:60388 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729578AbgAOVhP (ORCPT ); Wed, 15 Jan 2020 16:37:15 -0500 Received: from localhost (unknown [62.21.130.100]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 156D315A0E3E8; Wed, 15 Jan 2020 13:37:11 -0800 (PST) Date: Wed, 15 Jan 2020 13:35:42 -0800 (PST) Message-Id: <20200115.133542.149188857628032129.davem@davemloft.net> To: yangpc@wangsu.com Cc: edumazet@google.com, kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, ast@kernel.org, daniel@iogearbox.net, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, andriin@fb.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] tcp: fix marked lost packets not being retransmitted From: David Miller In-Reply-To: <1578993820-2114-1-git-send-email-yangpc@wangsu.com> References: <1578993820-2114-1-git-send-email-yangpc@wangsu.com> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 15 Jan 2020 13:37:14 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Pengcheng Yang Date: Tue, 14 Jan 2020 17:23:40 +0800 > When the packet pointed to by retransmit_skb_hint is unlinked by ACK, > retransmit_skb_hint will be set to NULL in tcp_clean_rtx_queue(). > If packet loss is detected at this time, retransmit_skb_hint will be set > to point to the current packet loss in tcp_verify_retransmit_hint(), > then the packets that were previously marked lost but not retransmitted > due to the restriction of cwnd will be skipped and cannot be > retransmitted. > > To fix this, when retransmit_skb_hint is NULL, retransmit_skb_hint can > be reset only after all marked lost packets are retransmitted > (retrans_out >= lost_out), otherwise we need to traverse from > tcp_rtx_queue_head in tcp_xmit_retransmit_queue(). > > Packetdrill to demonstrate: ... > Signed-off-by: Pengcheng Yang Applied, thank you.