diff options
author | David S. Miller <davem@davemloft.net> | 2018-03-04 13:34:19 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-04 13:34:19 -0500 |
commit | 413033149c65421ced8760a89ed807a8934439a8 (patch) | |
tree | af056020b5dbecea1e4fc30f37e50a32ae747576 /net/dsa/master.c | |
parent | efab163bbc19e5dbd2b7756c1f26defc9c27d6ba (diff) | |
parent | cda9f4aae3dceed192442807b70a5d34a13c478b (diff) | |
download | linux-413033149c65421ced8760a89ed807a8934439a8.tar.bz2 |
Merge branch 'dsa-serdes-stats'
Andrew Lunn says:
====================
Export SERDES stats via ethtool -S
The mv88e6352 family has a SERDES interface which can be used for
example to connect to SFF/SFP modules. This interface has a couple of
statistics counters. Add support for including these counters in the
output of ethtool -S.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/master.c')
-rw-r--r-- | net/dsa/master.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/dsa/master.c b/net/dsa/master.c index 00589147f042..90e6df0351eb 100644 --- a/net/dsa/master.c +++ b/net/dsa/master.c @@ -42,7 +42,7 @@ static int dsa_master_get_sset_count(struct net_device *dev, int sset) count += ops->get_sset_count(dev, sset); if (sset == ETH_SS_STATS && ds->ops->get_sset_count) - count += ds->ops->get_sset_count(ds); + count += ds->ops->get_sset_count(ds, cpu_dp->index); return count; } @@ -76,7 +76,7 @@ static void dsa_master_get_strings(struct net_device *dev, uint32_t stringset, * constructed earlier */ ds->ops->get_strings(ds, port, ndata); - count = ds->ops->get_sset_count(ds); + count = ds->ops->get_sset_count(ds, port); for (i = 0; i < count; i++) { memmove(ndata + (i * len + sizeof(pfx)), ndata + i * len, len - sizeof(pfx)); |