diff options
author | Andrew Lunn <andrew@lunn.ch> | 2019-03-01 17:43:39 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-03-02 03:45:04 -0500 |
commit | a6da21bb0eae459a375d5bd48baed821d14301d0 (patch) | |
tree | 4a5cb052a3ce10df99bfd0db91a879402bdc004f | |
parent | cf1c9ccba7308e48a68fa77f476287d9d614e4c7 (diff) |
net: dsa: mv88e6xxx: Fix statistics on mv88e6161
Despite what the datesheet says, the silicon implements the older way
of snapshoting the statistics. Change the op.
Reported-by: Chris.Healy@zii.aero
Tested-by: Chris.Healy@zii.aero
Fixes: 0ac64c394900 ("net: dsa: mv88e6xxx: mv88e6161 uses mv88e6320 stats snapshot")
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/dsa/mv88e6xxx/chip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c index f5cad42875e9..7e3c00bd9532 100644 --- a/drivers/net/dsa/mv88e6xxx/chip.c +++ b/drivers/net/dsa/mv88e6xxx/chip.c | |||
@@ -3093,7 +3093,7 @@ static const struct mv88e6xxx_ops mv88e6161_ops = { | |||
3093 | .port_disable_pri_override = mv88e6xxx_port_disable_pri_override, | 3093 | .port_disable_pri_override = mv88e6xxx_port_disable_pri_override, |
3094 | .port_link_state = mv88e6352_port_link_state, | 3094 | .port_link_state = mv88e6352_port_link_state, |
3095 | .port_get_cmode = mv88e6185_port_get_cmode, | 3095 | .port_get_cmode = mv88e6185_port_get_cmode, |
3096 | .stats_snapshot = mv88e6320_g1_stats_snapshot, | 3096 | .stats_snapshot = mv88e6xxx_g1_stats_snapshot, |
3097 | .stats_set_histogram = mv88e6095_g1_stats_set_histogram, | 3097 | .stats_set_histogram = mv88e6095_g1_stats_set_histogram, |
3098 | .stats_get_sset_count = mv88e6095_stats_get_sset_count, | 3098 | .stats_get_sset_count = mv88e6095_stats_get_sset_count, |
3099 | .stats_get_strings = mv88e6095_stats_get_strings, | 3099 | .stats_get_strings = mv88e6095_stats_get_strings, |