Skip to content

Commit a6da21b

Browse files
lunndavem330
authored andcommitted
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: 0ac64c3 ("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>
1 parent cf1c9cc commit a6da21b

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/dsa/mv88e6xxx

1 file changed

+1
-1
lines changed

drivers/net/dsa/mv88e6xxx/chip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3093,7 +3093,7 @@ static const struct mv88e6xxx_ops mv88e6161_ops = {
30933093
.port_disable_pri_override = mv88e6xxx_port_disable_pri_override,
30943094
.port_link_state = mv88e6352_port_link_state,
30953095
.port_get_cmode = mv88e6185_port_get_cmode,
3096-
.stats_snapshot = mv88e6320_g1_stats_snapshot,
3096+
.stats_snapshot = mv88e6xxx_g1_stats_snapshot,
30973097
.stats_set_histogram = mv88e6095_g1_stats_set_histogram,
30983098
.stats_get_sset_count = mv88e6095_stats_get_sset_count,
30993099
.stats_get_strings = mv88e6095_stats_get_strings,

0 commit comments

Comments
 (0)