]> git.karo-electronics.de Git - karo-tx-linux.git/commit
can: sja1000: fix network statistics update
authorWolfgang Grandegger <wg@grandegger.com>
Tue, 1 Sep 2009 05:29:41 +0000 (05:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Sep 2009 09:16:15 +0000 (02:16 -0700)
commit8935f57e68c40c6469efe03f996bfb6150e18c6b
tree2e9467085839fff453d7760bf2623bb2a4a02117
parent39e3ab6fded4d7e66e01a878f0cae23ddd480c3b
can: sja1000: fix network statistics update

The member "tx_bytes" of "struct net_device_stats" should be
incremented when the interrupt is done and an "arbitration
lost error" is a TX error and the statistics should be updated
accordingly.

Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/can/sja1000/sja1000.c