aboutsummaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorOleksij Rempel <[email protected]>2025-06-10 09:13:53 +0000
committerJakub Kicinski <[email protected]>2025-06-12 00:37:48 +0000
commit597ebdf37222ba7deb2ed24aa4de777d7edf22f7 (patch)
tree7ba10424460a579a3fff0f74c7fe5b742e3fff04 /net/lapb/lapb_timer.c
parentnet: phy: micrel: add MDI/MDI-X control support for KSZ9477 switch-integrated... (diff)
downloadkernel-597ebdf37222ba7deb2ed24aa4de777d7edf22f7.tar.gz
kernel-597ebdf37222ba7deb2ed24aa4de777d7edf22f7.zip
net: phy: micrel: Add RX error counter support for KSZ9477 switch-integrated PHYs
Add support for tracking receive error statistics from PHYs integrated into the KSZ9477 family of Ethernet switches. The integrated PHYs expose a receive error (RXER) counter in register 0x15. This counter increments when the PHY detects one or more symbol errors on a received frame. The register is cleared upon reading. Changes include: - `kszphy_update_stats()` to accumulate the RX error count. - `kszphy_get_phy_stats()` to expose this count via ethtool PHY stats. - Addition of a private `rx_err_pkt_cnt` field in the driver. - Registration of `.update_stats` and `.get_phy_stats` callbacks in the KSZ9477 PHY driver structure. The functionality of this counter was confirmed by physically disturbing the signal lines - specifically by wiggling exposed twisted pair wires and intentionally shorting between pairs. These actions triggered RXER increments, validating the counter's behavior. This RXER counter is confirmed for KSZ9477 and likely applicable to other related PHYs like those in KSZ9313. Signed-off-by: Oleksij Rempel <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions