]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: mscc: add ethtool statistics counters
authorRaju Lakkaraju <Raju.Lakkaraju@microsemi.com>
Mon, 8 Oct 2018 10:07:24 +0000 (12:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Oct 2018 17:29:21 +0000 (10:29 -0700)
commit53bbb54ecea70a1a06c78dcc934db84945db1515
tree1e15a45f81e5483a20933f57bbd0d92e7a433427
parentb89a2c2d060763b03164a2f705a970aedbf8576e
net: phy: mscc: add ethtool statistics counters

There are a few counters available in the PHY: receive errors, false
carriers, link disconnects, media CRC errors and valids counters.

So let's expose those in the PHY driver.

Use the priv structure as the next PHY to be supported has a few
additional counters.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Raju Lakkaraju <Raju.Lakkaraju@microsemi.com>
Signed-off-by: Quentin Schulz <quentin.schulz@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mscc.c