diff options
author | Andrew Lunn <andrew@lunn.ch> | 2018-03-01 02:02:27 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-04 13:34:18 -0500 |
commit | 88c060549a4c555d59965801d1e811b71614c2b7 (patch) | |
tree | b73154fc531efd68f3ae02e525b357b590336d77 /drivers/net/dsa/mt7530.c | |
parent | efab163bbc19e5dbd2b7756c1f26defc9c27d6ba (diff) | |
download | talos-obmc-linux-88c060549a4c555d59965801d1e811b71614c2b7.tar.gz talos-obmc-linux-88c060549a4c555d59965801d1e811b71614c2b7.zip |
dsa: Pass the port to get_sset_count()
By passing the port, we allow different ports to have different
statistics. This is useful since some ports have SERDES interfaces
with their own statistic counters.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mt7530.c')
-rw-r--r-- | drivers/net/dsa/mt7530.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c index 8a0bb000d056..511ca134f13f 100644 --- a/drivers/net/dsa/mt7530.c +++ b/drivers/net/dsa/mt7530.c @@ -604,7 +604,7 @@ mt7530_get_ethtool_stats(struct dsa_switch *ds, int port, } static int -mt7530_get_sset_count(struct dsa_switch *ds) +mt7530_get_sset_count(struct dsa_switch *ds, int port) { return ARRAY_SIZE(mt7530_mib); } |