Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266680
b: refs/heads/master
c: 5935f81
h: refs/heads/master
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Oct 14, 2011
1 parent 8128149 commit 05db43d
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 7ae60b3f3b297b7f04025c93f1cb2275c3a1dfcd
refs/heads/master: 5935f81c595897d213afcf756e3e41af7c704f0e
4 changes: 3 additions & 1 deletion trunk/drivers/net/ethernet/faraday/ftgmac100.c
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ static bool ftgmac100_rx_packet(struct ftgmac100 *priv, int *processed)

skb->len += size;
skb->data_len += size;
skb->truesize += size;
skb->truesize += PAGE_SIZE;

if (ftgmac100_rxdes_last_segment(rxdes))
done = true;
Expand All @@ -478,6 +478,8 @@ static bool ftgmac100_rx_packet(struct ftgmac100 *priv, int *processed)
rxdes = ftgmac100_current_rxdes(priv);
} while (!done);

if (skb->len <= 64)
skb->truesize -= PAGE_SIZE;
__pskb_pull_tail(skb, min(skb->len, 64U));
skb->protocol = eth_type_trans(skb, netdev);

Expand Down

0 comments on commit 05db43d

Please sign in to comment.