net: dsa: mv88e6xxx: Fix u64 statistics
authorAndrew Lunn <andrew@lunn.ch>
Thu, 28 Feb 2019 17:14:03 +0000 (18:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 Mar 2019 06:17:18 +0000 (07:17 +0100)
commit4afc9831f895ff1440e42f2f6ea5297a90da1001
tree8d1cfd85b9b6ad013cb1fc514aa884e6b4f1997b
parent05d9f554b7136dca02e76218d79c694f8c5deab4
net: dsa: mv88e6xxx: Fix u64 statistics

[ Upstream commit 6e46e2d821bb22b285ae8187959096b65d063b0d ]

The switch maintains u64 counters for the number of octets sent and
received. These are kept as two u32's which need to be combined.  Fix
the combing, which wrongly worked on u16's.

Fixes: 80c4627b2719 ("dsa: mv88x6xxx: Refactor getting a single statistic")
Reported-by: Chris Healy <Chris.Healy@zii.aero>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/dsa/mv88e6xxx/chip.c