]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: ethernet: mtk_eth_soc: ppe: add support for flow accounting
authorDaniel Golle <daniel@makrotopia.org>
Sun, 19 Mar 2023 12:57:35 +0000 (12:57 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 21 Mar 2023 02:48:23 +0000 (19:48 -0700)
commit3fbe4d8c0e53e40faf2e0c7505536f9483af6d23
treeebe54fbcf1b9deeb4af15fdfa054cc4fa266305b
parentc0a440031d4314d1023c1b87f43a4233634eebdb
net: ethernet: mtk_eth_soc: ppe: add support for flow accounting

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
Tested-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mediatek/mtk_eth_soc.c
drivers/net/ethernet/mediatek/mtk_eth_soc.h
drivers/net/ethernet/mediatek/mtk_ppe.c
drivers/net/ethernet/mediatek/mtk_ppe.h
drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c
drivers/net/ethernet/mediatek/mtk_ppe_offload.c
drivers/net/ethernet/mediatek/mtk_ppe_regs.h