Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 85819
b: refs/heads/master
c: 4a75834
h: refs/heads/master
i:
  85817: 6e26851
  85815: 5ae6fc3
v: v3
  • Loading branch information
Auke Kok authored and Jeff Garzik committed Feb 11, 2008
1 parent 66f9d03 commit 5a565fb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4bebfaa56b72c94fe4997240ee73ad1c1fcf96c9
refs/heads/master: 4a75834644ae32ded9bed14db39834d6d3bc4793
5 changes: 0 additions & 5 deletions trunk/drivers/net/ixgbe/ixgbe_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,18 +220,13 @@ static bool ixgbe_clean_tx_irq(struct ixgbe_adapter *adapter,
tx_ring->stats.bytes += tx_buffer_info->length;
if (cleaned) {
struct sk_buff *skb = tx_buffer_info->skb;
#ifdef NETIF_F_TSO
unsigned int segs, bytecount;
segs = skb_shinfo(skb)->gso_segs ?: 1;
/* multiply data chunks by size of headers */
bytecount = ((segs - 1) * skb_headlen(skb)) +
skb->len;
total_tx_packets += segs;
total_tx_bytes += bytecount;
#else
total_tx_packets++;
total_tx_bytes += skb->len;
#endif
}
ixgbe_unmap_and_free_tx_resource(adapter,
tx_buffer_info);
Expand Down

0 comments on commit 5a565fb

Please sign in to comment.