Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp3414550rwi; Tue, 1 Nov 2022 21:16:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7WUU0BFyca77ggyl4EMxmVV8avroSR/GPfYYElGUV662lURLLr4IgepD2mxirEPTew0QU+ X-Received: by 2002:a62:32c2:0:b0:56b:2cce:d46a with SMTP id y185-20020a6232c2000000b0056b2cced46amr22819002pfy.36.1667362564534; Tue, 01 Nov 2022 21:16:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667362564; cv=none; d=google.com; s=arc-20160816; b=PLGJXOZFeN4R2U8zSHA52Qt3EzvDCsedlkMO13QOr33skUo11U7vVbUi04S4kjCKyL 6ytFF5TLZo/sD6GV7auoZbir6ePON263yR9Jhgbzb9hn8nvbKr6kssZZGG0XHQWUQt8+ 8a8HKSxVU+q3KWflJYPlnKhxMNrxw37Dt4f3UF544ZI239cPn2U1wtxDZKgx0f4y/JpN oklzw2roTMpCWa3hDPCsR7VMEKoWeD3IVJX9xOEZiqtDHBaW/mgtCLBcaTU8tT3PCbxN 2dfYqNnCEp6isi/1CugCVGHTYMy3YQB4ocB04SNCW91/+TwbeJKpCx8uzTIWIJKAZ3aM 63vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=/33USl2Igmj67OuHESgbW2wSuvUtVvhD4BkJsHphVrs=; b=kleSAhiVpBSDUHmr3L9WIGhLtJ6YpXoOjS5t1tSZe+rzshQS/nOv7bRiQ6gpP81Nn3 sbSEc1Pwj18G+gwQ03T71xu4iEnKndnJqubQAHho2VBucAf7w/E0bFNDvY8j/Vo/+akp EMNDc5O4Jv8EpxaR7XwBElZ1qKut4sq3VTeaaLL1cKwj3Dq2qs5WS8ZwtD1tZRmUKyWe AVhqKDBuN1L0Cr707ZDxzgTOIaEE8Gq8mjsFGfRQjenJdAD011wIpRW7h4CdvZNr0CLB 2TMxr5lm/aJwuQg5r+QPKFbk+2y1yHIuPGXJiBbU8hiTIZ65lQlzaIVf8Ge1XZ94217L yOyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TPdWrIu7; 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 r15-20020a62e40f000000b005655fc278f3si12521573pfh.201.2022.11.01.21.15.51; Tue, 01 Nov 2022 21:16:04 -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=TPdWrIu7; 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 S229496AbiKBDt4 (ORCPT + 96 others); Tue, 1 Nov 2022 23:49:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230298AbiKBDtw (ORCPT ); Tue, 1 Nov 2022 23:49:52 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CA511F2C8; Tue, 1 Nov 2022 20:49:49 -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 ams.source.kernel.org (Postfix) with ESMTPS id D1388B82055; Wed, 2 Nov 2022 03:49:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0095EC433C1; Wed, 2 Nov 2022 03:49:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667360986; bh=rNNhFDFwW2G0G/ZlDlWXuItSrEFoY65rTPZ//6woXrw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=TPdWrIu7iH0zfXYRcUjT+c9FS6arh7I1skciZ+JgGrGWzZh8R+gd8l2fNzVBCLqOd 7cqjkrBPHQpzOWrrJPb9cIJkS7UWLj6++2VQl92pLVmXliD5fHyjOB68cZ1ZXo/JoM kLl8iiI0bn4cGnN9IwfT7rMRQRVsZsYa4i7uVjrMPEa73NrrJXRWzfqxD3s9gm6+BX 8WLdeoNnaegu80MswENmq4M8fXEw7OpGerz6OY0rfuz2sDUeRO/RZpJb+sYD5VjGlt lUXyHdX9bg8ub3odTSaSajdx77wbhybmPl9LmVUmm1ChBIJioyuVob279TK/azVqsk tEhyz+XehMe+g== Date: Tue, 1 Nov 2022 20:49:45 -0700 From: Jakub Kicinski To: Daniel Golle Cc: Felix Fietkau , John Crispin , Sean Wang , Mark Lee , "David S. Miller" , Eric Dumazet , 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 v4] net: ethernet: mediatek: ppe: add support for flow accounting Message-ID: <20221101204945.35edb8e6@kernel.org> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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, 2 Nov 2022 00:58:01 +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 > --- > v4: declare function mtk_mib_entry_read as static > v3: don't bother to set 'false' values in any zero-initialized struct > use mtk_foe_entry_ib2 > both changes were requested by Felix Fietkau > > v2: fix wrong variable name in return value check spotted by Denis Kirjanov Please read the FAQ: https://www.kernel.org/doc/html/next/process/maintainer-netdev.html#tl-dr https://www.kernel.org/doc/html/next/process/maintainer-netdev.html#running-all-the-builds-and-checks-locally-is-a-pain-can-i-post-my-patches-and-have-the-patchwork-bot-validate-them