Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3828881pxb; Tue, 7 Sep 2021 08:26:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkrqQmoO0iCLFrfKbMeZRLp+LMm31TuHdBuRh1XPb4OHeyCUBgMaf3tItaNqw0BHlOUAHS X-Received: by 2002:a6b:d90b:: with SMTP id r11mr14302874ioc.99.1631028377750; Tue, 07 Sep 2021 08:26:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631028377; cv=none; d=google.com; s=arc-20160816; b=REGz9608LJXxVHH+z9eiYwilyPtlrCh6vRYNOPAK5Xlur92+OXvUwwZStLT9dTecWC 0BQ4nX2GVzLMEoyoonLAa86L4ar1seZEkXf/f53by2vQA9zqfPJdtoHX0JK7oTpOZptG rSoWfVncUJHSIhoKosFk4NO0tvVjB+/Fe8RXN7z+jYtvmhToRytJ8Sntp5E8ZSA7BtPY KTs/RjMUNNJ419UyO2QHGfkXfizRM6ZxdN48XGrohVHja+DzB7yXh0md0nb4gvt7HF81 E62fbz38H9h9buptfVecojGoCNagpcX9SAgnQc3g9WnTTCYfrjEhvedk6II5eMocZzCs jzzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Q6hnF4rzaEcB3k0gEcqVjL/tjWG83NoIEoW0T87h7bg=; b=F8VpXqVxHY/610z8FSQJ0ZrQotxB5lRSfD5puqaWrAcj7vgxIZehL/9jm/l0fGPDjL DgV6jn/SDJvlImLgj+69eT2cfwomBtbGhMoD015ao/q9TlEGWLSlYOtpaNkSuNIUtW5I ru6ukVCf1ldZIYHnhn8qj7TpzBQaSr0gAZupgt0SFjZcaJw10vgPvARMdl9L7h3YR+gG TRl/IInif6EppUf3DsOIKYvdNsQJAYUZsnQ1iYCwlTGcaZHMvn0oy0Laqmld80PKJA3i 9r241pWqi4ohmJ4PoxYLz3dE8fHn9/0XuR2h4ieLG4W2tqMPuu91AcOSr4xrrkWBSRz5 xAwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="RLHio3+/"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j19si13411150jat.113.2021.09.07.08.26.05; Tue, 07 Sep 2021 08:26:17 -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=@google.com header.s=20210112 header.b="RLHio3+/"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345199AbhIGPZv (ORCPT + 99 others); Tue, 7 Sep 2021 11:25:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344974AbhIGPZs (ORCPT ); Tue, 7 Sep 2021 11:25:48 -0400 Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AD11C061575 for ; Tue, 7 Sep 2021 08:24:42 -0700 (PDT) Received: by mail-yb1-xb35.google.com with SMTP id q70so20512569ybg.11 for ; Tue, 07 Sep 2021 08:24:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Q6hnF4rzaEcB3k0gEcqVjL/tjWG83NoIEoW0T87h7bg=; b=RLHio3+/t+nypb0HbIW6zWvs8ZtOTjm0TuTqXNa8GaBqgbOvRBLlRNcA1M6EO4bf1s 9TkSzAZTxc3PdBRwhEoN6uSP1DIEpeYsNP0M/Lrntg5hfCoAeuM7FBFbIf5rA7N6RZOw 36RQawSpxo/FCMBg9m7jfaQo1bnF5saStoD/Z3IjS5UQ04RDDkbLmqdkKUq12aANfadl +7YEdPHkPUvDLwhtt03iFtMMGpPyM0mxSX5/JMEUvkTDwOEqI6e+4ytXRej09tFCR/Kg pvIrjjgtLiD3o/DoXg9uD8nQ4AXSqRBhmSFFWqM2jOo+OkBKfHcRAIrozBvTmChpMhJy vaDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Q6hnF4rzaEcB3k0gEcqVjL/tjWG83NoIEoW0T87h7bg=; b=MoO7p7e1QX5pmOZ+pwqZA2pxQN1Us+z12+VxBaqaWbp4+icfc1GLVbmPcXDfdc244f yvI//qefuYXoe5HOG4YKJWnzoYQ2SnETNK53nvlyRmoKf7Tl9Wjkfy98eFd8do43kyf+ CO25rPpJWS14gHvUu6pcI5w520O8OEWKHnqHEw8awSUeQl7BAkDlzmu+z6FNCPC4MD3d oY0VzZ0dDIEVbFENsp4y3spWl1tZpL2awYx9XC7zoGCR25e0qYFTeQybPxCIOmnHFvDt wd+nlryYM5GtuyZwAFbUkiIF/Hh/eqBNGPt6nP4DPUmyZ9LqXfgyERFAIsM+CEutgMGR B0Jg== X-Gm-Message-State: AOAM532m4CEebVFCDvpmD53NFFKWAnZNSmqMUrWi0uhdlCbDbdwr1iFK 0jJ9AY11hJH1GpvTTDz+SQt1BeDd7ZW+m9mYneu6eQ== X-Received: by 2002:a25:40b:: with SMTP id 11mr24851385ybe.398.1631028281091; Tue, 07 Sep 2021 08:24:41 -0700 (PDT) MIME-Version: 1.0 References: <20210904064044.125549-1-yan2228598786@gmail.com> <20210907111201.783d5ea2@gandalf.local.home> In-Reply-To: <20210907111201.783d5ea2@gandalf.local.home> From: Eric Dumazet Date: Tue, 7 Sep 2021 08:24:29 -0700 Message-ID: Subject: Re: [PATCH] net: tcp_drop adds `reason` and SNMP parameters for tracing v4 To: Steven Rostedt Cc: Zhongya Yan , netdev , LKML , Jakub Kicinski , Ingo Molnar , David Miller , Hideaki YOSHIFUJI , David Ahern , hengqi.chen@gmail.com, Yonghong Song , Brendan Gregg , 2228598786@qq.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 7, 2021 at 8:12 AM Steven Rostedt wrote: > Just curious. Is "Tcp" the normal way to write "TCP" in the kernel? I see > it in snmp_seq_show_tcp_udp() in net/ipv4/proc.c, but no where else > (besides doing CamelCase words). Should these be written using "TCP" > instead of "Tcp". It just looks awkward to me. > Yes, we prefer tcp or TCP, although SNMP counters have Tcp in them, for some reason ( grep Tcp /proc/net/netstat /proc/net/snmp ), that can not be changed.