net: dsa: loop: Implement ethtool statistics
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 15 Jun 2017 17:15:53 +0000 (10:15 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Jun 2017 16:43:48 +0000 (12:43 -0400)
commit484c01720d84c65e996a6adc4ba8ce6a811879df
tree32ba1a9e17d2722f7187891b8680432a8c355c49
parent3407dc8ed1a7528e8792c86d9ebc124aa5fa629f
net: dsa: loop: Implement ethtool statistics

When a DSA driver implements ethtool statistics, we also override the
master network device's ethtool statistics with the CPU port's
statistics and this has proven to be a possible source of bugs in the
past. Enhance the dsa_loop.c driver to provide statistics under the
forme of ok/error reads and writes from the per-port PHY read/writes.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/dsa_loop.c