projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf1c9cc
)
net: dsa: mv88e6xxx: Fix statistics on mv88e6161
author
Andrew Lunn
<
[email protected]
>
Fri, 1 Mar 2019 22:43:39 +0000
(23:43 +0100)
committer
David S. Miller
<
[email protected]
>
Sat, 2 Mar 2019 08:45:04 +0000
(
00:45
-0800)
Despite what the datesheet says, the silicon implements the older way
of snapshoting the statistics. Change the op.
Reported-by:
[email protected]
Tested-by:
[email protected]
Fixes: 0ac64c394900 ("net: dsa: mv88e6xxx: mv88e6161 uses mv88e6320 stats snapshot")
Signed-off-by: Andrew Lunn <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/dsa/mv88e6xxx/chip.c
patch
|
blob
|
history
diff --git
a/drivers/net/dsa/mv88e6xxx/chip.c
b/drivers/net/dsa/mv88e6xxx/chip.c
index f5cad42875e983b400f7987b35f2a50b571a2b8f..7e3c00bd9532a1051483f9e264f8c1538536870d 100644
(file)
--- 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 = {
.port_disable_pri_override = mv88e6xxx_port_disable_pri_override,
.port_link_state = mv88e6352_port_link_state,
.port_get_cmode = mv88e6185_port_get_cmode,
- .stats_snapshot = mv88e6
320
_g1_stats_snapshot,
+ .stats_snapshot = mv88e6
xxx
_g1_stats_snapshot,
.stats_set_histogram = mv88e6095_g1_stats_set_histogram,
.stats_get_sset_count = mv88e6095_stats_get_sset_count,
.stats_get_strings = mv88e6095_stats_get_strings,