Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1905362imm; Sun, 23 Sep 2018 14:42:56 -0700 (PDT) X-Google-Smtp-Source: ACcGV625sLaN5fZcKQ4vc+xbXWqqzTECEuv2XZuFKVr27yCgBIDuVVkhf3VnXIKUNay/OpAYnzG9 X-Received: by 2002:a17:902:76ca:: with SMTP id j10-v6mr521860plt.140.1537738976077; Sun, 23 Sep 2018 14:42:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537738976; cv=none; d=google.com; s=arc-20160816; b=d19Onb5UX5dsqQNS/17lHBkkpeaWcvbwzmjrjC5YbYPd/sFTIWxC9LnmhHitXQZNs5 frwkm8eyHoTN9J+K1vT/QNHndT88t0StHNhGRtNmoYyRiE7LRsEbp5CXevhZ5krnpCg8 iphdQS/8ltJn1/f/+pkBU1DfVlpkPRyDcrL7sqCcr8C7Pm5IZXTriijro0RmVdCfYp+W lhbcG4Z3YHtaDqgXB10alIsx+yP4zbKI1Xv0mvxxzxITOHkbHEnMV8u1EpOmI+Sayrwu 2mdIgFUDwghv99XHAae4a++NUR4ct/DQaklGBOVsuNMaKcmWc5LKisCOmH9gYerIUHY+ W8FA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Q+9t6sgfnTSpN9xPtPLFz7mfRvrPV1qRnJb8PdeJm+o=; b=FxOPXWmB/o7RdRmhn7ZfkXpcgMaQc13p/I6IlQrYG1Up5eO3lwg6QbPlm3i19RrFfH BcCaLJYcOqrLwP5jtiXdO9/w819xyDY5ynGpGNxk38oqYM9E9Ad3MLa+Rqdct5RJKN92 UOwIxQL/+EAisQnV8MH/hjTQNq1KBrdGBWWZGnmNvekXzhrqDgZ01YmoS/sSYmDF1aVT ioNg50Q2zgm4R0xePWO4v5W3fEFTXwmMIW0j0soWkgtc+wbjmoqN7qTRSrJDXjg5UrG/ Ltvobnws/gUE2jOZAz5yKfJIVDhf0FhrLLRopPNkbs3haruivMJdkG+Ww2oMYPcsKapd pS4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Z5u6ZCrZ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j10-v6si33843382plk.406.2018.09.23.14.42.37; Sun, 23 Sep 2018 14:42:56 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Z5u6ZCrZ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727267AbeIXDld (ORCPT + 99 others); Sun, 23 Sep 2018 23:41:33 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:38199 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727014AbeIXDld (ORCPT ); Sun, 23 Sep 2018 23:41:33 -0400 Received: by mail-pf1-f195.google.com with SMTP id x17-v6so8191345pfh.5; Sun, 23 Sep 2018 14:42:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Q+9t6sgfnTSpN9xPtPLFz7mfRvrPV1qRnJb8PdeJm+o=; b=Z5u6ZCrZXF8SmtfM8M13AMVNopbAMXHqQGEZUwc/ND68341KOTv4eqP0FRaoea8X8Z NbE1Y3utlQul8bW38D/Dv2qs0hsGAyO3c72fOzEun2nz3rybTcPL6v7rvgzvOVTsk9tF 6UgB6cq4JquQCjvEYlE0wh7vaAjZpxWopY+mJnITVTc5KuMi3pM3wg2OHTWJZZlNx4Jb 0J7VmtxnBWEZpNl5t2VRUlpvcTsnSn4qAFP+cqNH6x7G4l7+Y2eeDoeKwAq5xXKTBwfA lGUX68tt/tHo1vP774iJxGfDsh1FnJn5enA0vQT3RHgKS+7sn7/67bCBM+wQmhR7w3h1 1BhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Q+9t6sgfnTSpN9xPtPLFz7mfRvrPV1qRnJb8PdeJm+o=; b=PDXVyyKuk+28xHdYVohodZzhw+LutwvYjT/ae6zgeqMDhv+rmqzfLdWaOLvcPwndHb Uz/FJV5Kq6QCaVlbaYKHjg4mxWnkV/9uwC1jAN7RPdNVvTMnLa4526Bz5wtU+H8sy7p9 FJvBByXvADylgbbE2CgnuvNgKupEpVmxuqlii4Vz67h4mOBgDlvSA3wFrmtrhro0nHmM FHsDa0dz8nnux//rf1VCxzzEOLY76XOFnMT0pxTYdD4P0mGdQ9akmw8Qy8WlJkv59/sO ImgqPxv/qUtNYJiZ2jk3x0uyqyYBYk/eh7cWkWWxckesLU7VE31m29mB5iFDI9wmTwDg 4OEQ== X-Gm-Message-State: ABuFfogW9BTBgoBowcjk8cIlOyOigAA8Bibg8ebMFoK/qA6HJhn333wk /mnrGr2Fm9iTE+ru7mtJGihCdPp9 X-Received: by 2002:a63:e0e:: with SMTP id d14-v6mr7087769pgl.38.1537738952287; Sun, 23 Sep 2018 14:42:32 -0700 (PDT) Received: from [192.168.86.235] (c-67-180-167-114.hsd1.ca.comcast.net. [67.180.167.114]) by smtp.gmail.com with ESMTPSA id 26-v6sm3111260pfs.168.2018.09.23.14.42.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 23 Sep 2018 14:42:31 -0700 (PDT) Subject: Re: [PATCH net-next] tcp: expose sk_state in tcp_retransmit_skb tracepoint To: Yafang Shao , edumazet@google.com, davem@davemloft.net Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <1537732141-22468-1-git-send-email-laoar.shao@gmail.com> From: Eric Dumazet Message-ID: <375c389d-f391-5b72-bc52-9a82d61c6bd7@gmail.com> Date: Sun, 23 Sep 2018 14:42:30 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1537732141-22468-1-git-send-email-laoar.shao@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/23/2018 12:49 PM, Yafang Shao wrote: > With sk_state, we can know whether this connection is in SYN_SENT state > or ESTBLISHED state. > The reason to distinguish between these two scenario is that the > retransmission in ESTABLISHED state always mean network congestion while > in SYN_SENT state it always mean server issue, i.e. the syn packet is > dropped due to syn backlog queue full. You mean, a packet drop on the remote peer ? It could also be a packet drop in the network. Your patch is good, but changelog is quite misleading.