summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorIra W. Snyder <iws@ovro.caltech.edu>2012-07-19 08:54:18 -0700
committerMarc Kleine-Budde <mkl@pengutronix.de>2012-07-20 17:49:03 +0200
commit88b587039c1ad4e7a981bea3269eeb02a1a2a14b (patch)
tree54a97a0157e7f8330c8625f5527ffcb11bfcae64 /mm
parent9e4d6909a273ada78cf48379e478855bc13ae0cb (diff)
downloadlinux-88b587039c1ad4e7a981bea3269eeb02a1a2a14b.tar.bz2
can: janz-ican3: fix error and byte counters
The error and byte counter statistics were being incremented incorrectly. For example, a TX error would be counted both in tx_errors and rx_errors. This corrects the problem so that tx_errors and rx_errors are only incremented for errors caused by packets sent to the bus. Error packets generated by the driver are not counted. The byte counters are only increased for packets which are actually transmitted or received from the bus. Error packets generated by the driver are not counted. Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions