Received: by 2002:a05:6a10:87d6:0:0:0:0 with SMTP id g22csp332854pxr; Sun, 10 Apr 2022 16:33:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2rpCSB2s4sDyd7V7IBaj5ZvhNbqveDNDDwxmxvYDoO/w4sGa/q6uvRgAb20E3qf3NAmIz X-Received: by 2002:a17:90a:7004:b0:1cb:55d6:9f23 with SMTP id f4-20020a17090a700400b001cb55d69f23mr13141814pjk.187.1649633636478; Sun, 10 Apr 2022 16:33:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649633636; cv=none; d=google.com; s=arc-20160816; b=F259TwNbZrFuC2Zd+fI3WatrXBIH7GZ1tgY6q/KlQ3b5xzJ8DXd2WuvdvH2k7FZajb mpsc+pQgoQ39o8Mbdm3tyilRL9Q1gN5hTdyJfH0pZ1A9FALKlDYogIUxLTBygSVZ6uxy /SQBUMpQtAJ4aMyRv7TSvH4DqIdVvrAaTjma5NF5RbRtBZahQwt1VEkOlqCRUEDMip7v A0icE7wg8AYIzzfMxezIVBYBMlU1FeaqtIRs5USDFDB1p/Mz7tPJvb57R6NcoOVD/ZTH YRi+Pk/VrddfmJSW1/jc31redbVk1IghgYyfHpWDGRlVG2hVOrcUrdlU5V0J7RBoiHTn UZug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=jTcsFbBLNDReub+Nxxi2qemxrsICvA1RwiAJ05leBJM=; b=VNuUAIIG6h1XYV5SfagAYm/HhEYD5BARVy6Oe1vuvkZ6maJShHc23lz/uoI0G3+vII v6U2oSdD+4BBt57a9cYBMttZUkFInxxpJ7NVBEvFEqjzrXEMzDpCcqtHR22nHcvH+gKw BTcE33qkTvYWhgZ7lVJnuO0roQ75UVuHsFDCmdYwXfhgHk0vsepeRCO3qLyLRUwpfWHu 3GkYbkx9CO3hvrP/zhdjf46kRDVmSnewlPzOiTVCT4tj8aJKvDI5abRTU9cXxfMq5jmb 0j/tnw/0sGxf2unvBuqfdFMYDFnv8Ta1MbmACDMB5Jg/Okh/AcpZdbHRiAFOW2+Z6NP+ C9sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="gtoTUM/N"; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l5-20020a170902f68500b00155d59481eesi7458700plg.88.2022.04.10.16.33.42; Sun, 10 Apr 2022 16:33:56 -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=@kernel.org header.s=k20201202 header.b="gtoTUM/N"; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236316AbiDIDwd (ORCPT + 99 others); Fri, 8 Apr 2022 23:52:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231783AbiDIDw2 (ORCPT ); Fri, 8 Apr 2022 23:52:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8799ECB25; Fri, 8 Apr 2022 20:50:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 41BDC622CA; Sat, 9 Apr 2022 03:50:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C41AC385A0; Sat, 9 Apr 2022 03:50:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649476221; bh=TR63dPr9fJPfot2802e64a1epeSUkv6k0Aki8zERagk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=gtoTUM/NnYz0uCGUQVXRs0qomk4d6l6RM/0qIVvBL2fNt9Usu6ePW2SJY+UXa/pns VICSx05ydTjTirxs0D7gELSKS8On3yN+c64WM9r1FtuwAvzPrG645XWAMsokJijqXS A4HJ16Asw/aeL9zMcNGWq8E+Zvs5XyOccWNOKyWqE40oUDh9AXhpDjMUayinFN9w5k 8wcNhMjUfRKUrX7d5u+AdzziYbe16zGq4K2LOkwVBmY6wQLTQp/gHCbq63hKL7ZQAy Sf87Srnx7X5ks6Zrbc8Mlem2GB2DztYWPTqHHtNmy3c99eM2eYPwBuIjlYh8xffnSf eQ+LDG3CPgj8Q== Message-ID: <3d5c2bfc-cfb1-ea2d-f88c-36e0e4f92293@kernel.org> Date: Fri, 8 Apr 2022 21:50:19 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH RESEND net-next v5 2/4] net: skb: rename SKB_DROP_REASON_PTYPE_ABSENT Content-Language: en-US To: menglong8.dong@gmail.com, kuba@kernel.org, pabeni@redhat.com Cc: rostedt@goodmis.org, mingo@redhat.com, xeb@mail.ru, davem@davemloft.net, yoshfuji@linux-ipv6.org, imagedong@tencent.com, edumazet@google.com, kafai@fb.com, talalahmad@google.com, keescook@chromium.org, alobakin@pm.me, flyingpeng@tencent.com, mengensun@tencent.com, dongli.zhang@oracle.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, benbjiang@tencent.com References: <20220407062052.15907-1-imagedong@tencent.com> <20220407062052.15907-3-imagedong@tencent.com> From: David Ahern In-Reply-To: <20220407062052.15907-3-imagedong@tencent.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,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 4/7/22 12:20 AM, menglong8.dong@gmail.com wrote: > From: Menglong Dong > > As David Ahern suggested, the reasons for skb drops should be more > general and not be code based. > > Therefore, rename SKB_DROP_REASON_PTYPE_ABSENT to > SKB_DROP_REASON_UNHANDLED_PROTO, which is used for the cases of no > L3 protocol handler, no L4 protocol handler, version extensions, etc. > > From previous discussion, now we have the aim to make these reasons > more abstract and users based, avoiding code based. > > Signed-off-by: Menglong Dong > --- > include/linux/skbuff.h | 8 +++----- > include/trace/events/skb.h | 2 +- > net/core/dev.c | 8 +++----- > 3 files changed, 7 insertions(+), 11 deletions(-) > Reviewed-by: David Ahern