]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: Fix u64 statistics
authorAndrew Lunn <andrew@lunn.ch>
Thu, 28 Feb 2019 17:14:03 +0000 (18:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Feb 2019 20:53:02 +0000 (12:53 -0800)
commit294ccd044223598485037fda68ac48ec1be6b2b9
tree0530a4a0668a3c377d4f4ed5651ad91db52d909f
parentaec5818d614348796ee8b69eb97e343d43b98178
net: dsa: mv88e6xxx: Fix u64 statistics

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: 28b39bdbf95b ("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>
drivers/net/dsa/mv88e6xxx/chip.c