]> 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)
commitbd1b2dbb83ad3d14a4321543f20ddf3d002316b0
tree1e15a45f81e5483a20933f57bbd0d92e7a433427
parent903c8fe96b5dd3bf68d007b8d362a268c6cb75d2
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