Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2471822rdb; Tue, 12 Sep 2023 03:02:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IELkIYZZsoJHstsDI38lAl2VR+0ycLeD+gENHWDbE11bsHnirlA+DbnUvVRVLuunk7FNG/I X-Received: by 2002:a05:6a20:ce99:b0:148:cda5:45d0 with SMTP id if25-20020a056a20ce9900b00148cda545d0mr12743484pzb.34.1694512961692; Tue, 12 Sep 2023 03:02:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694512961; cv=none; d=google.com; s=arc-20160816; b=Y1SHdPaFqHI1+ivf/kXjIBHmYr9aUOdMTwRbAJBtBfXDwZsWjB59a0VxfDSWMvTkZQ d+GUiop2m473PjcOGkZukdUdu6o6F8O+vBsoYaDNegmtrWyerVLko6NLQ//Hh06iu3jU IIfxHBSwjVs4eXPgrsEYvkAnfVilkF1ekCAyJ1GSFTYCrJZarOy6y79Rn8jC482tzo27 rxx+fz1nGzmHUTayEjE8ivx6+SRI0X66pQ0iTSJVFkKOhkGB9uP2x923MlUBzBZWJ24D bEIj6detarmIZ4LcopoyOtThuyZZx+k4kxT/8w8dYtI8mcf5R5GQioIZlrHijnrYxDFZ jwfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:cc:to:subject :tls-required:message-id:from:content-transfer-encoding:date :dkim-signature:mime-version; bh=Jz1TTZmea1CLeqBzO6DM6M9LynoT0Lt4nmv857GbDQ8=; fh=+GyWthRK6IbKS8mdmHcowJkAZ8YKBQRiDMvwMHr7AJc=; b=GUOtOpJLleWU4KCBYXoES76RxdQMGIaOf/qT6djVdCebKpdVNe4R77Dwy0jweofFe7 ipimWkMLB83xgtzRH91XIYcUgwcueDob2uv5h6WF1W6O/kM2uOPv/faCmxDPHyKqGF6j FBBj1HAZE2hzCfJ9d+JCcgT2bVFukQNbfvsJhekNJIkJhXmqA5pEECXionUcJ/bHjRwp yNaCxibLc9CgPM401CvAu3h4U2vvHTSSFf8+yASxev3m9L/aiyaXweYjuOktEVBCu8lD c79xBEh2cVjK735j6eaMvP7qmE8l71aJsZmnUTYWiIX3psqIOfVAQfykVTZGeXFXf2mU y1ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="uzJZdzA/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id ca13-20020a056a00418d00b00666c9148d03si7713576pfb.6.2023.09.12.03.02.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 03:02:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="uzJZdzA/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id C2B0F8027B78; Mon, 11 Sep 2023 21:53:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236670AbjILCTm (ORCPT + 99 others); Mon, 11 Sep 2023 22:19:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236233AbjILCT0 (ORCPT ); Mon, 11 Sep 2023 22:19:26 -0400 Received: from out-219.mta1.migadu.com (out-219.mta1.migadu.com [95.215.58.219]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EA47B7A7F for ; Mon, 11 Sep 2023 18:42:33 -0700 (PDT) MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1694482951; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Jz1TTZmea1CLeqBzO6DM6M9LynoT0Lt4nmv857GbDQ8=; b=uzJZdzA/ZWyQb1Gp7SiKWp8rK22R2R9BoxXok0Gaw9niIX29KIT3CR2J/cud0NnSQllnhL o8c9zlxjCS01tAh8u36eZg0yLfhsy5c9sEOmdakfMNKotjlz7DzxkojuS1vBlpTknFgKTz Ng1CzIcKt8bJgE9JShoEukb1YxIKPQw= Date: Tue, 12 Sep 2023 01:42:29 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: "Yajun Deng" Message-ID: <5aa174ef5cd662595ffcefd3545ff07ed3063d6c@linux.dev> TLS-Required: No Subject: Re: [PATCH] net/core: Export dev_core_stats_rx_dropped_inc sets To: "Stephen Hemminger" Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230911091513.4f2f2aed@fedora> References: <20230911091513.4f2f2aed@fedora> <20230911082016.3694700-1-yajun.deng@linux.dev> X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 11 Sep 2023 21:53:41 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email September 12, 2023 at 12:15 AM, "Stephen Hemminger" wrote: >=20 >=20On Mon, 11 Sep 2023 16:20:16 +0800 > Yajun Deng wrote: >=20 >=20>=20 >=20> Although there is a kfree_skb_reason() helper function that can be > > used to find the reason for dropped packets, but most callers didn't > > increase one of rx_dropped, tx_dropped, rx_nohandler and > > rx_otherhost_dropped. > >=20=20 >=20> For the users, people are more concerned about why the dropped in > > ifconfig is increasing. So we can export > > dev_core_stats_rx_dropped_inc sets, which users would trace them kno= w > > why rx_dropped is increasing. > >=20 >=20 > ifconfig has been frozen for over 10 years, and is deprecated so there > is no point in catering to legacy api's. There are better API's such as > ethtool and netlink that can provide more info. > Yes, ifconfig is deprecated. but the dropped in ifconfig and ip is the sa= me. We're more concerned about the reason for dropped packets. ip, ethtool and netlink couldn't show the reason.