projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e9e479
)
qlge: Fix tx byte counter.
author
Ron Mercer
<ron.mercer@qlogic.com>
Thu, 2 Jul 2009 06:06:10 +0000
(06:06 +0000)
committer
David S. Miller
<davem@davemloft.net>
Sat, 4 Jul 2009 02:10:37 +0000
(19:10 -0700)
Signed-off-by: Ron Mercer <ron.mercer@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlge/qlge_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/qlge/qlge_main.c
b/drivers/net/qlge/qlge_main.c
index 1b75f6efd7f4902668dc7409e0e66adf451006bc..74ed84a288c25473854287b221364b845e9426d7 100644
(file)
--- a/
drivers/net/qlge/qlge_main.c
+++ b/
drivers/net/qlge/qlge_main.c
@@
-1629,7
+1629,7
@@
static void ql_process_mac_tx_intr(struct ql_adapter *qdev,
tx_ring = &qdev->tx_ring[mac_rsp->txq_idx];
tx_ring_desc = &tx_ring->q[mac_rsp->tid];
ql_unmap_send(qdev, tx_ring_desc, tx_ring_desc->map_cnt);
- qdev->stats.tx_bytes +=
tx_ring_desc->map_cnt
;
+ qdev->stats.tx_bytes +=
(tx_ring_desc->skb)->len
;
qdev->stats.tx_packets++;
dev_kfree_skb(tx_ring_desc->skb);
tx_ring_desc->skb = NULL;