[PATCH v4] net: ethernet: mediatek: ppe: add support for flow accounting

Jakub Kicinski kuba at kernel.org
Tue Nov 1 20:49:45 PDT 2022


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 <daniel at makrotopia.org>
> ---
> 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




More information about the linux-arm-kernel mailing list