Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46491
b: refs/heads/master
c: 7753b17
h: refs/heads/master
i:
  46489: 1d6da3d
  46487: 82f7ce9
v: v3
  • Loading branch information
Jesse Brandeburg authored and Jeff Garzik committed Feb 5, 2007
1 parent 7361ee8 commit 8c07e60
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: f6c57bafcdebed4429cdda206149ddcbb1d46e91
refs/heads/master: 7753b171c4e7604294060d4039214c8c8319bfca
9 changes: 6 additions & 3 deletions trunk/drivers/net/e1000/e1000_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4020,10 +4020,13 @@ e1000_clean_tx_irq(struct e1000_adapter *adapter,

if (cleaned) {
struct sk_buff *skb = buffer_info->skb;
unsigned int segs = skb_shinfo(skb)->gso_segs;
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_packets++;
total_tx_bytes += skb->len;
total_tx_bytes += bytecount;
}
e1000_unmap_and_free_tx_resource(adapter, buffer_info);
tx_desc->upper.data = 0;
Expand Down

0 comments on commit 8c07e60

Please sign in to comment.