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)
commitf76178dc5218a135726fdad45074413381d1bfca
tree1e15a45f81e5483a20933f57bbd0d92e7a433427
parent6a0bfbbe20b0ce8bb0ee149ecea620a56fe038e4
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