Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp3252991rwi; Tue, 1 Nov 2022 18:23:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5qRYK0HJtkfwNgQxM8vY/dsfeDstl/AGd71n1eIMWMcPVVjKAyA0fLyc0kxwk4ApR9tnoi X-Received: by 2002:a63:df10:0:b0:43b:e82f:e01c with SMTP id u16-20020a63df10000000b0043be82fe01cmr19655542pgg.19.1667352213347; Tue, 01 Nov 2022 18:23:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667352213; cv=none; d=google.com; s=arc-20160816; b=X/2BU1Fyn7k0puUZwfKPj+d645wF+e+nE/7EEJ/6Qi12CLmkXbNrMXQccfw8RBy8HG 27Cv94QHgwUwN2+j88U9wV1rv7z+rxuZbWTecHY2SU8cFGHMn+4nwbBUbfB0VF3NX+4O HzfSWkoMPtRUFtqgoPyzsTuQPn41+wHnElYswmgUUJsuwyO2NwJeP89m5w9FizC6OXJq qLiyv1PlvB7/IqNvABvOpsN85NTq9J9D52amx+TEZuNOQZVEI9sM9usUjgyCi8tMGmNs SICYrJvB79MIYFiv+Nwxw+57NRajhbF0JhFhrA58DpnsFdS9DXaZjUHdNw6ctWYpRIxn 9zcg== 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=NWk9XVbEvlPQhcbuvs8Zhj5ryFiUIaTsLcKMHnwr2tk=; b=wz9erzV5Rx7guBE57v931PrSIDhcFfMafRnLxvY595LojVRAAfF4bu3bh9I37kpUdt t8EjQ251bwhK8GwX0kBDukZi7YvJaSOOgtpvGWoJw+vKp+kFVgF5M6/Noz5TN7tpnUWp vDoIFk6DdOStDN+7AZG7tRy2PzOUiFQ01d25ZqeZH0N8r0J1uaWmwd9qR+IieNsTfI/S ozP6Iv1vXVhCIZIZcjQqPW+lSGlqENHuRqzL/DmHe0YxhFC2YDjr4DYhcEBqSDr8UtdN 5FmjG2bdDH3vBNjNR/tWOJNFZ0hMbOLQwv9qpMDXfayWSoHBgmWpGMiLIW2IcGBtlsaL r3rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=O48gEHf8; 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=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a192-20020a6390c9000000b0043961d06e6bsi13887449pge.787.2022.11.01.18.23.21; Tue, 01 Nov 2022 18:23:33 -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=@lunn.ch header.s=20171124 header.b=O48gEHf8; 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=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230002AbiKBAvv (ORCPT + 96 others); Tue, 1 Nov 2022 20:51:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34352 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbiKBAvu (ORCPT ); Tue, 1 Nov 2022 20:51:50 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 376F21B1C8; Tue, 1 Nov 2022 17:51:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=NWk9XVbEvlPQhcbuvs8Zhj5ryFiUIaTsLcKMHnwr2tk=; b=O48gEHf8cG8YQ540qN5Nww6sFA jUeLbaPO9G9hI90U4tJNCRh+qYd5/5ZPO7dmufPlDqI36GfrQcSiX/jaL6FcR7iJ9PiELs+JNhuO+ yE1OvCy9G0ebH69z3tY/7BMpa8vOcneDleBvE54LzpFxLH2GErH6gDljVgK0bC+eiqUI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oq1yT-0019Ys-Vi; Wed, 02 Nov 2022 01:51:21 +0100 Date: Wed, 2 Nov 2022 01:51:21 +0100 From: Andrew Lunn To: Daniel Golle Cc: Felix Fietkau , John Crispin , Sean Wang , Mark Lee , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] net: ethernet: mediatek: ppe: add support for flow accounting Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS 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 Wed, Nov 02, 2022 at 12:42:40AM +0000, Daniel Golle wrote: > The PPE units found in MT7622 and newer support packet and byte > accounting of hw-offloaded flows. Add support for reading those > counters as found in MediaTek's SDK[1]. > > [1]: https://git01.mediatek.com/plugins/gitiles/openwrt/feeds/mtk-openwrt-feeds/+/bc6a6a375c800dc2b80e1a325a2c732d1737df92 > Signed-off-by: Daniel Golle Sorry, but NACK. You have not explained why doing this correctly via ethtool -S cannot be done. debugfs is a vendor crap way of doing this. Andrew