Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp592723pxb; Wed, 25 Aug 2021 10:10:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3H0dEb4fhl1njrGwjWFLw+PbcxuCfCWgq95NceSpMLtI9kYUGTSTwriSCiOHTXMqadjN6 X-Received: by 2002:aa7:c1c4:: with SMTP id d4mr49082856edp.301.1629911445361; Wed, 25 Aug 2021 10:10:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629911445; cv=none; d=google.com; s=arc-20160816; b=JQJs9rgVzgV5KtZUExl6NikPm4HSdyuP9hrJNOn5TlFOx2gpYHJKwho3C0rgAoxVDR bEIyrmCfDUZk6giWcBjf78bUwsK+Pn+lRar9jTIji5v385m7MglojqkOb8gv1Yt3E5Bx MNm1RF5UEkarkxBw9rAx9uSee1Q+iFWVGR78T8G8a/kJ/h27j8jzJCp8mUXPVCz3VqTR PAyPH8SyIoeIKXHJgRQiGGyVxap6yrUzIbrENZoFTplCx9Lt8JBGI4Af/OtW2d+yXGs1 znUmwBkMzfDBk+/LsDpPUDbF5XyMdcEDW4bClyIw2GYLeeV/cKMcrsazaODFIweEmnYe oEpQ== 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=V6xAAdjEWETRO21Riu21XxNuMTJx3kfM/2eP/S6Zfz8=; b=1H/ZYedgFjcLynrawlOCpARy54ixdAOXdK+tVotd0Bc9LzJ5yf+uWuovaoTfqrQQuk ln3IB9miJaC7NB1KrDuhuHnrBkn/W0A1KD6E9iv6dZE9KGic6oJH3nDRAmBZ/yKUGETh 3HEer8Fbfu72L8H/YOyOAE5taUTiRNK8SchEmNmg8Xdb2wcI5UxCIB7hUrd1U3jTSD65 WIaNPUALLEEzHIPrZzFebjf0+1uWyLf+ieosdT98EnkDTpcIu6sE7rDAAGc9nGCyPqoR q8EcrPoD5Fn1DoQbjdcu4M9kdHXDZZQrGvqbnqibwyYJpp/ZokX5qPDLRkHAhLSwJxtl HyHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PXCH12Jz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bu1si217150ejb.482.2021.08.25.10.10.17; Wed, 25 Aug 2021 10:10:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PXCH12Jz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S242189AbhHYRHG (ORCPT + 99 others); Wed, 25 Aug 2021 13:07:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:46190 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242183AbhHYRHF (ORCPT ); Wed, 25 Aug 2021 13:07:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0161061058; Wed, 25 Aug 2021 17:06:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629911179; bh=d2lCqJb48k/VCROtiXDkkcJZlUlABGvCvA1gpbGnLCM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=PXCH12JzYdNIEH4ZxijPfSTxWlaDJcGRJ56zW+dv/KG0byJ6s4GHTKGaMW8JgmW/0 AvFa/7mngnhBvcFjsvMdplHef4kzyxGmfVRXz6WDbnhRTckfGrw35YRycS0bo8EVzy eLz7HAFW95G9mT22PHRUFQiHHZ0Y14WlN89ML01izv6GKHOzhNrjHz7DKcNAd3pfYV fvBrfUfZhXiST2kjRpZ2EQUD4lDz71Aviuuphrfw1bOSxlk1b4E+fcKXMCn1zRc6vY 4dvlnhAQoUixCkUoyU4hSVtj7MKEdEdCvW6E3AmF9zPSjCiOXLr5JB9G44Ko8nftAY SxyKGul0wSRTQ== Date: Wed, 25 Aug 2021 10:06:18 -0700 From: Jakub Kicinski To: Eric Dumazet Cc: Zhongya Yan , netdev , LKML , Steven Rostedt , Ingo Molnar , David Miller , Hideaki YOSHIFUJI , David Ahern , hengqi.chen@gmail.com, Yonghong Song Subject: Re: [PATCH] net: tcp_drop adds `reason` parameter for tracing v2 Message-ID: <20210825100618.687eedae@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: References: <20210825154043.247764-1-yan2228598786@gmail.com> <20210825090418.57fd7d2f@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 25 Aug 2021 09:20:37 -0700 Eric Dumazet wrote: > On Wed, Aug 25, 2021 at 9:04 AM Jakub Kicinski wrote: > > On Wed, 25 Aug 2021 08:47:46 -0700 Eric Dumazet wrote: > > > I'd rather use a string. So that we can more easily identify _why_ the > > > packet was drop, without looking at the source code > > > of the exact kernel version to locate line number 1057 > > > > Yeah, the line number seems like a particularly bad idea. Hopefully > > strings won't be problematic, given we can expect most serious users > > to feed the tracepoints via BPF. enum would be more convenient there, > > I'd think. > > > > > You can be sure that we will get reports in the future from users of > > > heavily modified kernels. > > > Having to download a git tree, or apply semi-private patches is a no go. > > > > I'm slightly surprised by this angle. Are there downstream kernels with > > heavily modified TCP other than Google's? > > Not sure why Google is mentioned here ? > Have you ever received a public report about TCP behavior in a Google kernel ? That's a rhetorical question quite likely, but to be clear - what I meant is that Google is the main contributor to Linux TCP and has the expertise to make changes. I don't know of any others hence the question. > Over the years, we received hundreds of TCP bug reports on > netdev@vger, where users claim to use kernel version 4.19 (or other), > when in fact they use 4.19.xxx > It takes in general multiple emails exchange before we get a more > realistic version number. > Not to mention distro kernels, or even worse private kernels, which > are not exactly easy to track for us upstream developers. Right but for backports values come from original patch, enum or string. I don't mean to dispute your preference tho, if you want strings, strings it is.