net: dsa: mv88e6xxx: Allow the SERDES interfaces to have statistics
authorAndrew Lunn <andrew@lunn.ch>
Thu, 1 Mar 2018 01:02:29 +0000 (02:02 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Mar 2018 18:34:18 +0000 (13:34 -0500)
commit436fe17d273bed9fd8b7bdf4172ea6d9eac0b703
treee3ebcf6c2f0bd7757328b0e3e576004c53f83d50
parentc6c8cd5e3ce494419d8894d6a96aa17375b83ca2
net: dsa: mv88e6xxx: Allow the SERDES interfaces to have statistics

When gettting the number of statistics, the strings and the actual
statistics, call the SERDES ops if implemented. This means the stats
code needs to return the number of strings/stats they have placed into
the data, so that the SERDES strings/stats can follow on.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/chip.h