]> rtime.felk.cvut.cz Git - socketcan-devel.git/commit
sja1000: fix network statistics update
authorwolf <wolf@030b6a49-0b11-0410-94ab-b0dab22257f2>
Tue, 15 Sep 2009 18:42:01 +0000 (18:42 +0000)
committerwolf <wolf@030b6a49-0b11-0410-94ab-b0dab22257f2>
Tue, 15 Sep 2009 18:42:01 +0000 (18:42 +0000)
commita2a2b8b73285a391cac7fb471fcf9d857249c3e8
treef79a2e0374e2f0ef32a304aeab671ffd09bb8ac4
parent09765bc083c4fafc6ab695bdd07f416956297116
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.

See net-next-2.6 commit 8935f57e68c40c6469efe03f996bfb6150e18c6b

Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@1058 030b6a49-0b11-0410-94ab-b0dab22257f2
kernel/2.6/drivers/net/can/sja1000/sja1000.c