]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: ethernet: qualcomm: Add PPE debugfs support for PPE counters
authorLuo Jie <quic_luoj@quicinc.com>
Mon, 18 Aug 2025 13:14:37 +0000 (21:14 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 21 Aug 2025 10:38:42 +0000 (12:38 +0200)
commita2a7221dbd2b177145858daabda0070ff5d2b7e7
tree681abbbb860592bb278990fd25328c9f666800e2
parent8cc72c6c9236ebdf5d245924574e70546ecdda15
net: ethernet: qualcomm: Add PPE debugfs support for PPE counters

The PPE hardware counters maintain counters for packets handled by the
various functional blocks of PPE. They help in tracing the packets
passed through PPE and debugging any packet drops.

The counters displayed by this debugfs file are ones that are common
for all Ethernet ports, and they do not include the counters that are
specific for a MAC port. Hence they cannot be displayed using ethtool.
The per-MAC counters will be supported using "ethtool -S" along with
the netdevice driver.

The PPE hardware various type counters are made available through the
debugfs files under directory "/sys/kernel/debug/ppe/".

Signed-off-by: Luo Jie <quic_luoj@quicinc.com>
Link: https://patch.msgid.link/20250818-qcom_ipq_ppe-v8-13-1d4ff641fce9@quicinc.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/qualcomm/ppe/Makefile
drivers/net/ethernet/qualcomm/ppe/ppe.c
drivers/net/ethernet/qualcomm/ppe/ppe.h
drivers/net/ethernet/qualcomm/ppe/ppe_debugfs.c [new file with mode: 0644]
drivers/net/ethernet/qualcomm/ppe/ppe_debugfs.h [new file with mode: 0644]
drivers/net/ethernet/qualcomm/ppe/ppe_regs.h