Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266893
b: refs/heads/master
c: 924a4c7
h: refs/heads/master
i:
  266891: 81787ac
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Oct 20, 2011
1 parent e6e7964 commit ba9db7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 7b8b59617ead5acc6ff041a9ad2ea1fe7a58094f
refs/heads/master: 924a4c7d2e962b4e6a8e9ab3aabfd2bb29e5ada9
3 changes: 2 additions & 1 deletion trunk/drivers/net/ethernet/myricom/myri10ge/myri10ge.c
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,6 @@ myri10ge_rx_skb_build(struct sk_buff *skb, u8 * va,
struct skb_frag_struct *skb_frags;

skb->len = skb->data_len = len;
skb->truesize = len + sizeof(struct sk_buff);
/* attach the page(s) */

skb_frags = skb_shinfo(skb)->frags;
Expand Down Expand Up @@ -1385,6 +1384,8 @@ myri10ge_rx_done(struct myri10ge_slice_state *ss, int len, __wsum csum,
if (skb_frag_size(&skb_shinfo(skb)->frags[0]) <= 0) {
skb_frag_unref(skb, 0);
skb_shinfo(skb)->nr_frags = 0;
} else {
skb->truesize += bytes * skb_shinfo(skb)->nr_frags;
}
skb->protocol = eth_type_trans(skb, dev);
skb_record_rx_queue(skb, ss - &mgp->ss[0]);
Expand Down

0 comments on commit ba9db7f

Please sign in to comment.