Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2116050pxb; Wed, 9 Feb 2022 11:10:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJyDhbTNffXF5pA6jeJOBICi+rXsukWDGS8DqRlvAcnMX7W5uGgxujJvXQNXX+M+SVIRWk0H X-Received: by 2002:a63:371b:: with SMTP id e27mr3029575pga.618.1644433815053; Wed, 09 Feb 2022 11:10:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644433815; cv=none; d=google.com; s=arc-20160816; b=d7WtaLhmA3squhyit45wG/Y22nsH7DRx8N13jipmztM8XkKK265vyfLlS4b2qms75U ybptC0LJSA82Zo9B/4JXirIYehnK9HGy2fHNWHgLYoCgwQiLBGmlG3HWkuYRAp7VOKSH MKEjpJhVsx4JpnRmLQBXUFdgoVucn9yFD8JXdBZhq4oJwi94tzRL25vkS9x+SEVl9Hax sCRGUIsMnVE3PbGu3F1UAuSG9mmD4OHq0S4vKY0kunAQMyVK8FYgZs4Ps+eeS77NEql7 Lw7PtogEmNhafA+nmxn/u2RGKl5DwEW3LDesEj71K9Q/7v3k6AzkT6Leb7EOMN/S/rj2 Hvfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=AyPVdM+Px9t0COZXkbffbEcG7jUs+g3bmwqXA+leG10=; b=n+Z3NEtwtOsTVmWjARQo/0m7N3D5uHnnhCN0lEWm76Np7PsuWV/HmQjKZoVf1tu1QU Fu/NNUfpt4WNPBqh4M2UnV9WgFh9UQXSBBlAqCvb4iQK/Nj5a9ZpN7dy9WcEn+dIPmqH ZieWo/cggB87DcjhmyJ2TpIsjyj+QuD5NUvA7YptLM4toRynM6719Cr03SXi9O/cvEwb 4lJ10Yo2bsoue871QfpVOn5KqIRbonEPkVj8HbArOl61wYmfNa1KBLCwgPNDHQr2nqFi 2CZ2ofj3JaY3a7ijOC1td/9SAlKE37y8P6n+v+RQaDPKcyBiTs4fj7fhPha8shhKEK3G xhPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=RSpuffbP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y4si5440902pjg.126.2022.02.09.11.10.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 11:10:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=RSpuffbP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 37DDDC02B5CF; Wed, 9 Feb 2022 11:09:56 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236576AbiBIQWR (ORCPT + 99 others); Wed, 9 Feb 2022 11:22:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233355AbiBIQWP (ORCPT ); Wed, 9 Feb 2022 11:22:15 -0500 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F616C0613C9; Wed, 9 Feb 2022 08:22:18 -0800 (PST) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 0F3E23201ECF; Wed, 9 Feb 2022 11:22:16 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 09 Feb 2022 11:22:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=AyPVdM+Px9t0COZXk bffbEcG7jUs+g3bmwqXA+leG10=; b=RSpuffbPXoR40AZ9ceUtgeB07rV769Ft8 eHwplwAELAmGPI15+xH8oXg872HcUkZdopoCy2IQ8baGRf69RivslgmlNforS3L6 B3n2jpYNmpHgrxK/4eZ9wBObzLS8h8o+6V2+00WAv/lmKEXoX/5w/NQwgA2tYdn8 M4kIn4FSiH7iEYnq0RkW7Von6lrqxTOjbpS/I4t9UE4hG/Zh8K9Qaq6FUept3goZ jAJ14d7C8VFOJl4vQ9oNvogbGJ8lcE31SXR8y9Za/TFvu5CJb3wt7GtSFRdSk4Ex iJlIBkdfs3NLgNcaEXynXA5cVgMu1eO0WCWadlCjuTrfHg5w6Ms5g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrheelgdekiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepkfguohcuufgt hhhimhhmvghluceoihguohhstghhsehiughoshgthhdrohhrgheqnecuggftrfgrthhtvg hrnheptdffkeekfeduffevgeeujeffjefhtefgueeugfevtdeiheduueeukefhudehleet necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepihguoh hstghhsehiughoshgthhdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 9 Feb 2022 11:22:15 -0500 (EST) Date: Wed, 9 Feb 2022 18:22:11 +0200 From: Ido Schimmel To: menglong8.dong@gmail.com Cc: nhorman@tuxdriver.com, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, rostedt@goodmis.org, dsahern@kernel.org, Menglong Dong Subject: Re: [PATCH v8 net-next] net: drop_monitor: support drop reason Message-ID: References: <20220209060838.55513-1-imagedong@tencent.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220209060838.55513-1-imagedong@tencent.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Wed, Feb 09, 2022 at 02:08:38PM +0800, menglong8.dong@gmail.com wrote: > From: Menglong Dong > > In the commit c504e5c2f964 ("net: skb: introduce kfree_skb_reason()") > drop reason is introduced to the tracepoint of kfree_skb. Therefore, > drop_monitor is able to report the drop reason to users by netlink. > > The drop reasons are reported as string to users, which is exactly > the same as what we do when reporting it to ftrace. > > Signed-off-by: Menglong Dong Reviewed-by: Ido Schimmel