ethtool: Add phy statistics
authorAndrew Lunn <andrew@lunn.ch>
Wed, 30 Dec 2015 15:28:25 +0000 (16:28 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Dec 2015 05:53:10 +0000 (00:53 -0500)
commitf3a4094558ddf8afa8bb58250d548e15e059c65a
tree081f2d64b4eef8094fef2b8e8858364f3c74155f
parenta3748a9c7fc0e33ed1a5bcd6104098d9f63a61ed
ethtool: Add phy statistics

Ethernet PHYs can maintain statistics, for example errors while idle
and receive errors. Add an ethtool mechanism to retrieve these
statistics, using the same model as MAC statistics.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/phy.h
include/uapi/linux/ethtool.h
net/core/ethtool.c