]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
net: dsa: mv88e6xxx: mv88e6161 uses mv88e6320 stats snapshot
authorAndrew Lunn <andrew@lunn.ch>
Fri, 2 Jun 2017 21:22:46 +0000 (23:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Jun 2017 01:34:17 +0000 (21:34 -0400)
The mv88e6161 was using the wrong method to perform statistics
snapshot.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c

index 5751723a0911002f4afd58ac0e60fc3c9944d26d..117f275e3fb69a22e178925251022193883fbe14 100644 (file)
@@ -2464,7 +2464,7 @@ static const struct mv88e6xxx_ops mv88e6123_ops = {
        .port_set_egress_floods = mv88e6352_port_set_egress_floods,
        .port_disable_learn_limit = mv88e6xxx_port_disable_learn_limit,
        .port_disable_pri_override = mv88e6xxx_port_disable_pri_override,
-       .stats_snapshot = mv88e6xxx_g1_stats_snapshot,
+       .stats_snapshot = mv88e6320_g1_stats_snapshot,
        .stats_get_sset_count = mv88e6095_stats_get_sset_count,
        .stats_get_strings = mv88e6095_stats_get_strings,
        .stats_get_stats = mv88e6095_stats_get_stats,
@@ -2558,7 +2558,7 @@ static const struct mv88e6xxx_ops mv88e6161_ops = {
        .port_pause_config = mv88e6097_port_pause_config,
        .port_disable_learn_limit = mv88e6xxx_port_disable_learn_limit,
        .port_disable_pri_override = mv88e6xxx_port_disable_pri_override,
-       .stats_snapshot = mv88e6xxx_g1_stats_snapshot,
+       .stats_snapshot = mv88e6320_g1_stats_snapshot,
        .stats_get_sset_count = mv88e6095_stats_get_sset_count,
        .stats_get_strings = mv88e6095_stats_get_strings,
        .stats_get_stats = mv88e6095_stats_get_stats,