projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/drivers/net/atlx/atl2.c
b/drivers/net/atlx/atl2.c
index d548a67da1e881501f243e2335b18367b028cc27..5ab9c76310023856c59b0e983e84d1afe9dbe3c4 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++;