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 19:34:18 +0100 |
commit | 88c060549a4c555d59965801d1e811b71614c2b7 (patch) | |
tree | b73154fc531efd68f3ae02e525b357b590336d77 /net/dsa/slave.c | |
parent | tools: tc-testing: Add notap option (diff) | |
download | linux-88c060549a4c555d59965801d1e811b71614c2b7.tar.xz 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 'net/dsa/slave.c')
-rw-r--r-- | net/dsa/slave.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c index 3376dad6dcfd..18561af7a8f1 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c @@ -605,7 +605,7 @@ static int dsa_slave_get_sset_count(struct net_device *dev, int sset) count = 4; if (ds->ops->get_sset_count) - count += ds->ops->get_sset_count(ds); + count += ds->ops->get_sset_count(ds, dp->index); return count; } |