Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2064217pxb; Mon, 20 Sep 2021 11:21:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXAVusRPOe3LvueCbgph2XsR1NP1IaZoPmwWlnPP5rmsfo0gVK7h7bHgizOiPD9+9tPyrs X-Received: by 2002:a50:aa9c:: with SMTP id q28mr29997689edc.199.1632162067608; Mon, 20 Sep 2021 11:21:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632162067; cv=none; d=google.com; s=arc-20160816; b=syDDa4pe87OgqXzkdTJujWd/T51b2oIlc2L56eGpdow5afgvZWx1a50wwIOUlme4vF iNBf2QPF1XnVmifnUPjrli4CbAFcw9Rrj/tmySY3+bps8VXt0k/NFZUW1y91QFc4gPpr /IyybTqiqmcW6jqrQGKbYc6iDhlRulp6E5kmpqaijzb4fFFQwC0jaYArXcfMOmHoCJl7 StJQ2nV3XQ6HNtJs0YDEE+WgZqidg2uHCbbrcbTPj/5ooLEag81Q9xH2fX3c4llkE5qD VFr2wi/bVNCtd+1iQIyl996IxtIZ3JcRy4rPRFpPWrqfeg/YUBSOj0/684QbLnLG5s12 kwdw== 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=IBSoeVVLnWYAGPb1SKm3z5sRdwBHeGdklFJrhwdB0Fk=; b=WbbHnIMUZvfrB/fKxDKAQVPcQe+ePCjx3CBc7anC4ymFdlaLsLOb6ET5ZmzaGrv8yI jlXLMRZu8RMSrrpEnzE7mfsVePkAZHrAMNMYmT2d30fGdZTk0pRoZbvHpVZxvXZMRkk6 P896B3RWoTArS86S55vybAz5BDjd+QQfGFAnFcRIdYmzCkh7FqL5u6vpgs/e2NN7q8mF pgdGbJ7U2qiOW2+7UBCzLfHJv6SpSxRAPVjp1wiLkT9uQpMdS5Mnm8Ei9b/AjeBHcQS4 Ak1Kl8HMzpXjA7F4ta6B6lDGRdso+nVPqbjqKmsndsJxM5DdcVjTBtwpHMoJLydHbmVF Z1PQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mxpwn2lS; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ay23si16834009edb.134.2021.09.20.11.20.36; Mon, 20 Sep 2021 11:21:07 -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=@gmail.com header.s=20210112 header.b=mxpwn2lS; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347699AbhITSQ6 (ORCPT + 99 others); Mon, 20 Sep 2021 14:16:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356720AbhITSKn (ORCPT ); Mon, 20 Sep 2021 14:10:43 -0400 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A292CC03403E; Mon, 20 Sep 2021 09:59:01 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id v2so11472039plp.8; Mon, 20 Sep 2021 09:59:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IBSoeVVLnWYAGPb1SKm3z5sRdwBHeGdklFJrhwdB0Fk=; b=mxpwn2lSSJ3JeF+MV9cVwjvjo2x+lsjCqILuSHO3fItLmVLbvGdWPgCfwpOhhTCVte JfrJCqruUjbiRw3++8TJ5LGoAlVOjnhWEgb0/hs3VusIXpMs3gXoeInjf4R8JCVU8lVM 32ddI6pgI+0Jktv+nvvMPz53Yo1wCUTc9N2aDD1BgM0jsH3nMdU9Ag+EaUJ+eLvOutP2 tVEjdBwmFW3gqVmtlJpdocAv4DsUgW2+vdPqdAk6X1b5F/c9sJVBhBP/3q/2bnI2O2rn y0UJKOmxMXSkDoDvE7U4JjWKF2BW9Cl7nJWUiY4o/T5MGOd2zLfs/ipxPIjXxPpielz3 Ljpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IBSoeVVLnWYAGPb1SKm3z5sRdwBHeGdklFJrhwdB0Fk=; b=xbbZe+Ala7WDr14ucNu+j+RQITAWhHVZvQmMaar085FW1dDW3Ob5HIDpkgFB1kbR4n CJ2o5BDgJUHFctRL86SjJvzNdbmguxAux2rub5OY1Qycpv9RPV0V6Lqms+hQEEtJGQ0m uO39C9xZwTzIBWtWX3m+puGAaxpb0yl6H8FtDUdoV5EMOApyLQB2o5oxAgISshdD4Lwk +wT996y+pCjJ5r2UeLQuMGLBj/zWC2dCmiayPES1Ab6VLF3el5vprt1ZxYMLGd/fUKGk ItMaIdPEpTR4wXAifXGmyi46ShboTWt6G2nTcKphRS67ydHATlDKZtgGuBUV0LALu4RG 3XsQ== X-Gm-Message-State: AOAM531p14CLmUyTvY4f0NNBIkCiIA5rs44z5lWVAq5nPMBJPOyiLPtj VHOLUQOZ1ju32djpzU4jxVCvVno9DOC/f1NKjPvauyS2F6k= X-Received: by 2002:a17:90a:2945:: with SMTP id x5mr23757549pjf.225.1632157141127; Mon, 20 Sep 2021 09:59:01 -0700 (PDT) MIME-Version: 1.0 References: <20210904064044.125549-1-yan2228598786@gmail.com> In-Reply-To: From: Cong Wang Date: Mon, 20 Sep 2021 09:58:50 -0700 Message-ID: Subject: Re: [PATCH] net: tcp_drop adds `reason` and SNMP parameters for tracing v4 To: Zhongya Yan Cc: Eric Dumazet , Linux Kernel Network Developers , LKML , Jakub Kicinski , Steven Rostedt , Ingo Molnar , David Miller , Hideaki YOSHIFUJI , David Ahern , hengqi.chen@gmail.com, Yonghong Song , Brendan Gregg , Zhongya Yan <2228598786@qq.com> Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 4, 2021 at 7:51 PM Zhongya Yan wrote: > Thanks for the tip! > See reason:https://github.com/iovisor/bcc/issues/3533 This link only explains why TCP needs it, my question is why not do it for other protocols too, therefore neither this link nor you answers it. BTW, net/core/drop_monitor.c is based on kfree_skb() tracepoint too, in case you are only interested in tracepoints not other things. Thanks.