diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2019-03-31 17:42:24 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-01 18:13:36 -0700 |
commit | 74dcb4c1a52c7c6666319a149ad4adb001f1d00b (patch) | |
tree | 8ad59af9f3714779aecebab2bb106935f4244c13 /fs/statfs.c | |
parent | 5869b8fadad0be948e310c456f111c4103f5fbfb (diff) |
net: phy: aquantia: add SGMII statistics
The AQR107 family has SGMII statistics counters. Let's expose them to
ethtool. To interpret the counters correctly one has to be aware that
rx on SGMII side is tx on ethernet side. The counters are populated
by the chip in 100Mbps/1Gbps mode only.
v2:
- add constant AQR107_SGMII_STAT_SZ
- add struct aqr107_priv to be prepared for more private data fields
- let aqr107_get_stat() return U64_MAX in case of an error
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/statfs.c')
0 files changed, 0 insertions, 0 deletions