eth: fbnic: add PCIe hardware statistics
authorSanman Pradhan <sanman.p211993@gmail.com>
Fri, 15 Nov 2024 01:53:43 +0000 (17:53 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 19 Nov 2024 02:43:41 +0000 (18:43 -0800)
commit25ba596d137db208ace697e3adc7cc35b3b2882b
tree9b4591529335a37327a69bec0cc3bb3ec5be4e62
parent08606cb528bed9f265ea8a99b0c310f3eba0ca89
eth: fbnic: add PCIe hardware statistics

Add PCIe hardware statistics support to the fbnic driver. These stats
provide insight into PCIe transaction performance and error conditions.

Which includes, read/write and completion TLP counts and DWORD counts and
debug counters for tag, completion credit and NP credit exhaustion

The stats are exposed via debugfs and can be used to monitor PCIe
performance and debug PCIe issues.

Signed-off-by: Sanman Pradhan <sanman.p211993@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20241115015344.757567-5-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/networking/device_drivers/ethernet/meta/fbnic.rst
drivers/net/ethernet/meta/fbnic/fbnic_csr.h
drivers/net/ethernet/meta/fbnic/fbnic_debugfs.c
drivers/net/ethernet/meta/fbnic/fbnic_hw_stats.c
drivers/net/ethernet/meta/fbnic/fbnic_hw_stats.h
drivers/net/ethernet/meta/fbnic/fbnic_pci.c