Skip to content

Commit 0ac64c3

Browse files
lunndavem330
authored andcommitted
net: dsa: mv88e6xxx: mv88e6161 uses mv88e6320 stats snapshot
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>
1 parent ec8378b commit 0ac64c3

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

drivers/net/dsa/mv88e6xxx/chip.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2464,7 +2464,7 @@ static const struct mv88e6xxx_ops mv88e6123_ops = {
24642464
.port_set_egress_floods = mv88e6352_port_set_egress_floods,
24652465
.port_disable_learn_limit = mv88e6xxx_port_disable_learn_limit,
24662466
.port_disable_pri_override = mv88e6xxx_port_disable_pri_override,
2467-
.stats_snapshot = mv88e6xxx_g1_stats_snapshot,
2467+
.stats_snapshot = mv88e6320_g1_stats_snapshot,
24682468
.stats_get_sset_count = mv88e6095_stats_get_sset_count,
24692469
.stats_get_strings = mv88e6095_stats_get_strings,
24702470
.stats_get_stats = mv88e6095_stats_get_stats,
@@ -2558,7 +2558,7 @@ static const struct mv88e6xxx_ops mv88e6161_ops = {
25582558
.port_pause_config = mv88e6097_port_pause_config,
25592559
.port_disable_learn_limit = mv88e6xxx_port_disable_learn_limit,
25602560
.port_disable_pri_override = mv88e6xxx_port_disable_pri_override,
2561-
.stats_snapshot = mv88e6xxx_g1_stats_snapshot,
2561+
.stats_snapshot = mv88e6320_g1_stats_snapshot,
25622562
.stats_get_sset_count = mv88e6095_stats_get_sset_count,
25632563
.stats_get_strings = mv88e6095_stats_get_strings,
25642564
.stats_get_stats = mv88e6095_stats_get_stats,

0 commit comments

Comments
 (0)