mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-12 00:38:55 +00:00
qlge: Fix tx byte counter.
Signed-off-by: Ron Mercer <ron.mercer@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6e9e4795e6
commit
13cfd5be53
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user