Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4982023imw; Tue, 19 Jul 2022 17:54:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tLn2PHTd9G2tQSe6HhKsHMufijPwdkEDogBFNY+yDjMpqaTt/1JoErEFEq+RjcHCNM3Ttk X-Received: by 2002:a17:906:3989:b0:70c:2090:b498 with SMTP id h9-20020a170906398900b0070c2090b498mr33476526eje.56.1658278440249; Tue, 19 Jul 2022 17:54:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658278440; cv=none; d=google.com; s=arc-20160816; b=ij6P6/udLLT5FF98oDKhmbrHHvQd4mw7tbV/h09mqGThfrMMi9om8Tq0B1eNTHY2cj 2WLwZXtASKaK0ePGkOcf35UaIM0ScP3y1O0BhatCQ2GmYtwDj68386HbgKCqtsIGFZH0 0jDdSO7fcznjI8zInmDDfDPecz+4iQ2zUwQDYx/kH1M7pvLQ+aPjoltUFnbCithvd2hS PANtnblHqC4papewjUCSNjJS7B0q1g8ofkHG/iopIbMoptkSZCmQG+4cbHaGQ0lczgnt TpP1+i6QThZFhRD8NyxGGQPVwrT5XpdzB7WFMTzGJFTFchkQ1a1L44wRx5b8oIkZupk7 Z/og== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=7V43HNczuq08vrvOHcLuuCOpukIXvxFkPwBdEYjpWak=; b=ChtccIv04eQ0Gd96E+RP2dbNI+SqPwKesV39+srlYStUtbSPvuhFjgoBrD5BK7v6lp P7Hyp7LAFympifWuKIUg/DgURQxyZVSIIDQP/0q4/QjFLgh6aiUCz9Osmup61uDT4KfN DEnwzu7vQIEbkfeRdFHFO1ULmMo2ITHQWLDO5menmgrMFGn/0aguklnRTfbKxy4nwayv 9PvKlrKAkBT9ZOqeFlMD0gZ958MJ3nQ6nBM8uXtdm4PbM5v0g+/+HrcGdhXA4l1zkdtj l+15bkZ6wUDEFIU2XKsRYtgJA003Lj5JjOgrLv6RznqyRXaQA/JSuAZV+aTFVuF9TBHW yuXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Mxyqy8s+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w1-20020a056402268100b00439b80cadb9si5574442edd.438.2022.07.19.17.53.35; Tue, 19 Jul 2022 17:54:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Mxyqy8s+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238914AbiGTAtX (ORCPT + 99 others); Tue, 19 Jul 2022 20:49:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238777AbiGTAtU (ORCPT ); Tue, 19 Jul 2022 20:49:20 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58CA950078; Tue, 19 Jul 2022 17:49:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id EC635B81DD6; Wed, 20 Jul 2022 00:49:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D682C341C6; Wed, 20 Jul 2022 00:49:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658278156; bh=dIaExzjLQwCMa+c5XJJ2EQEFfNaaQkyJh6Cm5aHnsEc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Mxyqy8s+XANTOgym8JECEJ/hEwoVihsLLxln6+k06zq2A2HLApchWHlVSJKVqOayt RrZxM3ZfBmHtIni0+PAOgO1dioXDGUIWL26drPUTjzzEu25VmOIBxfZNOx5W6jpUMb ZLp+WRRtNamhboH+bDjQ/eLAtyIdkXz7c3FnX9CVF4LQAPgu2cDMekNGh3RhxsV4TM vW1ol5MOQJhMI1Pt659Th1qcj1B1o5B3q5FNq7SQSKK6CHZxlsy34tJj1N2cmaMa7T ig0jPetotxkdBhh+2SZkuHltDzIVdAaPvWIcSZz4yzwATvttIwo9+OTn+CXMFrHoG7 UAm8SthveGIUw== Date: Tue, 19 Jul 2022 17:49:15 -0700 From: Jakub Kicinski To: LemmyHuang Cc: edumazet@google.com, davem@davemloft.net, dsahern@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] tcp: fix condition for increasing pingpong count Message-ID: <20220719174915.48f830b4@kernel.org> In-Reply-To: <20220719130136.11907-1-hlm3280@163.com> References: <20220719130136.11907-1-hlm3280@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 19 Jul 2022 21:01:37 +0800 LemmyHuang wrote: > - if (before(tp->lsndtime, icsk->icsk_ack.lrcvtime) && > + if ((tp->lsndtime <= icsk->icsk_ack.lrcvtime) && Are you sure you don't need to take care of the values wrapping? before() does that. You may want !after() if you want to allow equal.