mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-19 09:15:17 +04:00
The PPE counts frames at every stage and the driver enables most of the counting, but nothing reads it back. Add qca_ppe_debugfs.c with read-only files for the L3 interface, port policer, drop code, queue, buffer manager, ingress, egress and ACL counters, at the addresses of this generation rather than the APPE ones the IPQ9574 driver uses. The queue drop counters sit past 0x900000, so the PPE register window grows to 0xa00000 in both dtsi files and the binding example. Nothing is written, and sparse tables skip entries that counted nothing. On IPQ8074 the drop_code, queues and bm files give the drop codes and queue occupancy the later patches in this series are measured with. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Julius Bairaktaris <julius@bairaktaris.de> Link: https://github.com/openwrt/openwrt/pull/25700 Signed-off-by: Robert Marko <robimarko@gmail.com>