]> git.ipfire.org Git - thirdparty/linux.git/commit
net: ti: icssg-prueth: Add ICSSG FW Stats
authorMD Danish Anwar <danishanwar@ti.com>
Thu, 24 Apr 2025 09:53:16 +0000 (15:23 +0530)
committerJakub Kicinski <kuba@kernel.org>
Tue, 29 Apr 2025 00:20:53 +0000 (17:20 -0700)
commit0d15a26b247d25cd012134bf8825128fedb15cc9
treeabd08a7179fa5923bc834bf33c14ce9ff71eea31
parenta427e7f99b710f3547f0bfb91c4371acb56e1c84
net: ti: icssg-prueth: Add ICSSG FW Stats

The ICSSG firmware maintains set of stats called PA_STATS.
Currently the driver only dumps 4 stats. Add support for dumping more
stats.

The offset for different stats are defined as MACROs in icssg_switch_map.h
file. All the offsets are for Slice0. Slice1 offsets are slice0 + 4.
The offset calculation is taken care while reading the stats in
emac_update_hardware_stats().

The statistics are documented in
Documentation/networking/device_drivers/icssg_prueth.rst

Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
Link: https://patch.msgid.link/20250424095316.2643573-1-danishanwar@ti.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/networking/device_drivers/ethernet/index.rst
Documentation/networking/device_drivers/ethernet/ti/icssg_prueth.rst [new file with mode: 0644]
drivers/net/ethernet/ti/icssg/icssg_common.c
drivers/net/ethernet/ti/icssg/icssg_prueth.h
drivers/net/ethernet/ti/icssg/icssg_stats.c
drivers/net/ethernet/ti/icssg/icssg_stats.h
drivers/net/ethernet/ti/icssg/icssg_switch_map.h