Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp548904pxm; Fri, 25 Feb 2022 13:30:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJwBZna+z5OzfIlLfvs3sHAI6BZj/d6WdWs+3TjPKSXR1d7IkJMD1yRr+BN+Y5Y8ctQ2veOA X-Received: by 2002:a05:6a00:124a:b0:4e1:7cfb:634c with SMTP id u10-20020a056a00124a00b004e17cfb634cmr9689642pfi.12.1645824612510; Fri, 25 Feb 2022 13:30:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645824612; cv=none; d=google.com; s=arc-20160816; b=TrrXDEGcPuncI3KE4gzwG0B7bOMXVMWfy+lUx06V+eKJTYdHCNBP4f5Ur9NEzuuSdi Jtw39j5RZsHW5Mx8P8i7s8fov3Xe9UD0vt1llWSX2JcUDH5efoUxiKUWwiLdrK2jHrKU zXSPYMA8RvqLFLk1ImVtpiJyBqOjQJWD4MBZDfY6dbKf0eyqF7SxwfP6mAXgMf1JyWzE olMBB7tU5+TRXl1qPajQJvh0tpg7YKsAAYxoHPblQVTDoO73xSMT/O/EZzXzxoWRqHld tv22Qxjg0ij9bgJ4IPBTeKgmODY0aY/BvaoqhwLUrrWdBTGOFYoE7IwXa3nL+xf6yuno 7Zcw== 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=Awqu1m75U2k0RWL1pg/dD+UGZ6kOi7tpNEn+pD9+J1s=; b=JHpqXbDRs5V5V6+5f27iYC5/oOnELf/EDKb62footux37045ehLL7nBo83f1sThgIT g2dkGBHBEvfWQv7aSxlBZOOa5+1uZuCwgaNggQa8NUJlFTW01bRH2m/fRPyhZvCJychl pHmC99i44hwO+LXDAUGinzDNLeE45vz1eSh/y45SJQX3u+5CTqCOM9xmvezLJG7Uylyz 30GK3cUECFzrqAUIAntEfJJ2CbdrRm3Hw5K/db2FP/WO0nPR/CmgyTg8RJjjPu0Y+AZ6 1JMTh+P+yuH2t2r9mUzU1TAC81Em3C1Y8u6m0BEE3ISMhvkMIHS3Fw/aiVbI/lYpavUa XEXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E5tkRkYL; 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 k14-20020a056a00134e00b004e158615f17si2976085pfu.6.2022.02.25.13.29.55; Fri, 25 Feb 2022 13:30:12 -0800 (PST) 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=E5tkRkYL; 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 S242219AbiBYPna (ORCPT + 99 others); Fri, 25 Feb 2022 10:43:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242259AbiBYPn3 (ORCPT ); Fri, 25 Feb 2022 10:43:29 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 589421FEDA8; Fri, 25 Feb 2022 07:42:57 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id 1132FB8325D; Fri, 25 Feb 2022 15:42:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6EE7C340E7; Fri, 25 Feb 2022 15:42:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645803774; bh=rG0AcVeKtn6Er71mQXjGdAsXPiigDD36j/6q1LCtrHY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=E5tkRkYLTogDI8uVkWLYEWNS+OizruaLyBLOkuIRXaCAHCejmIyl11vuty3csmPzz plLrA4h9wcslVR7++vs7JrFHNcAKId9jVVEjFTxHIPzxj8EXlqA5xp+Y/GhJshZxhR +6iQcKus3COda19T6ttXheB2lzkZvpcxgF8wV1unMi9zEaaVz7KfI0jgIL0GydVfSh rlDOp64kTRZXN4iX2iEUcd0SuDs60IypWA1J+tmfgsaI8V3qVDHNmOfUIHmpavA8RR PQG3cTwFgqOflWXVmYxWdh2USZbKxThH1jtp77S6udiH2LHXHDn9Uiu+CijZEA9lAC GbTDCXeFYV6/Q== Message-ID: Date: Fri, 25 Feb 2022 08:42:51 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [PATCH net-next v2 1/3] net: ip: add skb drop reasons for ip egress path Content-Language: en-US To: menglong8.dong@gmail.com Cc: rostedt@goodmis.org, mingo@redhat.com, davem@davemloft.net, kuba@kernel.org, yoshfuji@linux-ipv6.org, imagedong@tencent.com, edumazet@google.com, alobakin@pm.me, cong.wang@bytedance.com, paulb@nvidia.com, talalahmad@google.com, keescook@chromium.org, ilias.apalodimas@linaro.org, memxor@gmail.com, flyingpeng@tencent.com, mengensun@tencent.com, daniel@iogearbox.net, yajun.deng@linux.dev, roopa@nvidia.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org References: <20220225071739.1956657-1-imagedong@tencent.com> <20220225071739.1956657-2-imagedong@tencent.com> From: David Ahern In-Reply-To: <20220225071739.1956657-2-imagedong@tencent.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 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 2/25/22 12:17 AM, menglong8.dong@gmail.com wrote: > From: Menglong Dong > > Replace kfree_skb() which is used in the packet egress path of IP layer > with kfree_skb_reason(). Functions that are involved include: > > __ip_queue_xmit() > ip_finish_output() > ip_mc_finish_output() > ip6_output() > ip6_finish_output() > ip6_finish_output2() > > Following new drop reasons are introduced: > > SKB_DROP_REASON_IP_OUTNOROUTES > SKB_DROP_REASON_BPF_CGROUP_EGRESS > SKB_DROP_REASON_IPV6DSIABLED A new version is needed to fix the typo Roman noticed; logic wise: Reviewed-by: David Ahern