Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1015256pxp; Thu, 17 Mar 2022 00:27:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQTDS3UoKxTtBDEfvyVsujF+pMLlOZy35+a/8lfmH2+O7tbC4dUBWjhkypXmZw91jIctQd X-Received: by 2002:a17:90b:1c8f:b0:1b8:c6dc:ca61 with SMTP id oo15-20020a17090b1c8f00b001b8c6dcca61mr3795484pjb.13.1647502048110; Thu, 17 Mar 2022 00:27:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647502048; cv=none; d=google.com; s=arc-20160816; b=kX91Us9K4TTHvlM6oXmA8SPSbE92fC222PgnaAFe6aq+z2AdS3ody0+yqv3QHx7iWz 8sMhA0lYaz3R664oRHbtEDzd9/5iDOTUSIx0OiKPbxKZvZmxvT0cVh+svExSrBDE1Cmd ibmyIna6UGp55Wk1qaxlIzOXTkMuP+19stnCqZJgNVgnE69yp6Gnnzu4T5BAdWVNc7Bv zTX1XeKW8dv2TAs3LiB+L5Be0eBEnaxbz9KGwMVbKyOk8mr7OTJOelrGtpO1MeFqZ8WH HI7pqIbE8lRUDO31N2T9D6c9x0FitqY9UXdLGJT8srAHeY8TRoxgn2VB67MJESo+cBsG HPQg== 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=OOH6gnDuS8Igvj6VsPfk/9cEpfu0P7pulJAkbuWoKdM=; b=kO6JzQHujQpW6O7YdNBuIuFF46fs8a4j5Ud++AEWQDgZk4okKzSHkV00LE/4HMDp1D zIHf8TnlNGV+AJpXEgBgjserDJqqyDUxORGjONSHNebhk6mPGodVnCReINcgQevgRIhJ TF0zIUXWtxAonqIZEt4mHG1UMjnQyz/Gl03zMaBtmYWaeXx2+MnccGkahPDHadkqhTo1 WZGr6kucltoX4vb5/1YeATupNHjeaSmTPnPhA7zZlep1gDQw2mxpSghSbTpiXDO2LGOl G+9e0TYf280mJKcRnbdLw6TP5pTiUUNZ+juOAYq+v4Nea2ooKdm/KgXIKEEXQo5wck9g y5tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hck6V50r; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l15-20020a63570f000000b003816043ee62si1243974pgb.87.2022.03.17.00.27.15; Thu, 17 Mar 2022 00:27:28 -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=@gmail.com header.s=20210112 header.b=hck6V50r; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229985AbiCQGNQ (ORCPT + 99 others); Thu, 17 Mar 2022 02:13:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229788AbiCQGNL (ORCPT ); Thu, 17 Mar 2022 02:13:11 -0400 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5461E99EF5; Wed, 16 Mar 2022 23:03:03 -0700 (PDT) Received: by mail-ej1-x641.google.com with SMTP id qx21so8457865ejb.13; Wed, 16 Mar 2022 23:03:03 -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=OOH6gnDuS8Igvj6VsPfk/9cEpfu0P7pulJAkbuWoKdM=; b=hck6V50rDYKiathOEJ+G1zkLJH45wzzmkmLCrHehJMfdjpSqCorl/p+7cUiHBXca50 a/aBgfy+WZ8FzgDPZzT+rjJbwr/MlScONMNq+biaiH+XSrd1HFONeLQoUHYvkPvDImYt bkq7IqMCotphjYD2HuDSpGysixnmo8Z5fV7PF+KQVUFsRDnspid+VJCoMLuSJuHyi+r+ uxp01xf3Dp5cf8SJs9CRMMzjH/cJn3POz+QoMW3enVNpK7J7vR1H3UxWbGFRbivFmZjw q+24gnsDa5fns6vkYUaet7g+Js/Ys4WEecvUwydGA82Vt6lWuV5eMA2PBJc5edkq+/aV JpuQ== 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=OOH6gnDuS8Igvj6VsPfk/9cEpfu0P7pulJAkbuWoKdM=; b=RyRa7azFMF1hj7ykfAJr40jhemWCeOkJVrTQiN0VWyrLpW0hwdw2IfM72SrmX85Wai a9IzedLQcY42yc6ggD3FpF2GBrIVM3rPtZAz54yC7BQWQMaggRIZbf4nA9RdnRpu/9ny 6YlJyuu71GSSVC1y/g461kGnsaepYfusAbsDaXysaP+7XcnSEN5Ch8q392UEVuKjy/eM UFWmfOf9/1ozCFbIAj4/p3467HwkiHdmT1xBn5qUEogzb/ql6OHIUv+09m/WW057kvQK UvWncKd04tH7C6rHkEzznOduOOQmMRD00kb6zuEaQnrQff9rFK/EsCHx8LRqIHf/1Co2 zrqw== X-Gm-Message-State: AOAM531w4ktRx/xfwlmZKLNxNa5azj4jdEtHlr4d0jr46TG844SIYNA4 or71SLsKtcFkB3gbvYLduY7jodB1UuRBUNkXIXY= X-Received: by 2002:a17:906:2695:b0:6cf:e1b4:118b with SMTP id t21-20020a170906269500b006cfe1b4118bmr2845593ejc.348.1647496981212; Wed, 16 Mar 2022 23:03:01 -0700 (PDT) MIME-Version: 1.0 References: <20220316063148.700769-1-imagedong@tencent.com> <20220316063148.700769-4-imagedong@tencent.com> <20220316201853.0734280f@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <4315b50e-9077-cc4b-010b-b38a2fbb7168@kernel.org> <20220316210534.06b6cfe0@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20220316210534.06b6cfe0@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> From: Menglong Dong Date: Thu, 17 Mar 2022 14:02:49 +0800 Message-ID: Subject: Re: [PATCH net-next v3 3/3] net: icmp: add reasons of the skb drops to icmp protocol To: Jakub Kicinski Cc: David Ahern , Paolo Abeni , Steven Rostedt , Ingo Molnar , xeb@mail.ru, David Miller , Hideaki YOSHIFUJI , Menglong Dong , Eric Dumazet , Martin Lau , Talal Ahmad , Kees Cook , Alexander Lobakin , Hao Peng , Mengen Sun , dongli.zhang@oracle.com, LKML , netdev , Biao Jiang Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Thu, Mar 17, 2022 at 12:05 PM Jakub Kicinski wrote: > > On Wed, 16 Mar 2022 21:35:47 -0600 David Ahern wrote: > > On 3/16/22 9:18 PM, Jakub Kicinski wrote: > > > > > > I guess this set raises the follow up question to Dave if adding > > > drop reasons to places with MIB exception stats means improving > > > the granularity or one MIB stat == one reason? > > > > There are a few examples where multiple MIB stats are bumped on a drop, > > but the reason code should always be set based on first failure. Did you > > mean something else with your question? > > I meant whether we want to differentiate between TYPE, and BROADCAST or > whatever other possible invalid protocol cases we can get here or just > dump them all into a single protocol error code. Such as a SKB_DROP_REASON_PROTO_NOTSUPPORTED? and apply it to 'GRE_VERSION' such cases too? Which means the data is not supported by current protocol.