]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: Allow providing PHY statistics from CPU port
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 25 Apr 2018 19:12:52 +0000 (12:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Apr 2018 15:53:03 +0000 (11:53 -0400)
commit87c9e702d44c6c6d37cfee582791d7af0ee1a109
tree78375bd5f5d00dab15a09c64c962b59ed93601ab
parent5aa8bd27cae176d5e6054a7656a98bb7589fadf9
net: dsa: Allow providing PHY statistics from CPU port

Implement the same type of ethtool diversion that we have for
ETH_SS_STATS and make it work with ETH_SS_PHY_STATS. This allows
providing PHY level statistics for CPU ports that are directly
connecting to a PHY device.

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