projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1545e20
)
atl2: add tx bytes statistic
author
Jay Cliburn
<jacliburn@bellsouth.net>
Sat, 20 Sep 2008 22:37:05 +0000
(17:37 -0500)
committer
Jeff Garzik
<jgarzik@redhat.com>
Thu, 25 Sep 2008 02:11:49 +0000
(22:11 -0400)
Signed-off-by: Jay Cliburn <jacliburn@bellsouth.net>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/atlx/atl2.c
patch
|
blob
|
history
diff --git
a/drivers/net/atlx/atl2.c
b/drivers/net/atlx/atl2.c
index
d548a67
..
5ab9c76
100644
(file)
--- a/
drivers/net/atlx/atl2.c
+++ b/
drivers/net/atlx/atl2.c
@@
-522,8
+522,10
@@
static void atl2_intr_tx(struct atl2_adapter *adapter)
atomic_set(&adapter->txd_read_ptr, (int)txd_read_ptr);
/* tx statistics: */
- if (txs->ok)
+ if (txs->ok) {
+ adapter->net_stats.tx_bytes += txs->pkt_size;
adapter->net_stats.tx_packets++;
+ }
else
adapter->net_stats.tx_errors++;