Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188889
b: refs/heads/master
c: 243aad8
h: refs/heads/master
i:
  188887: 809d0e7
v: v3
  • Loading branch information
Timo Teräs authored and David S. Miller committed Mar 22, 2010
1 parent 386ed30 commit c428da9
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: 9bf35c8dddd56f7f247a27346f74f5adc18071f4
refs/heads/master: 243aad830e8a4cdda261626fbaeddde16b08d04a
4 changes: 3 additions & 1 deletion trunk/net/ipv4/ip_gre.c
Original file line number Diff line number Diff line change
Expand Up @@ -810,11 +810,13 @@ static netdev_tx_t ipgre_tunnel_xmit(struct sk_buff *skb, struct net_device *dev
tunnel->err_count = 0;
}

max_headroom = LL_RESERVED_SPACE(tdev) + gre_hlen;
max_headroom = LL_RESERVED_SPACE(tdev) + gre_hlen + rt->u.dst.header_len;

if (skb_headroom(skb) < max_headroom || skb_shared(skb)||
(skb_cloned(skb) && !skb_clone_writable(skb, 0))) {
struct sk_buff *new_skb = skb_realloc_headroom(skb, max_headroom);
if (max_headroom > dev->needed_headroom)
dev->needed_headroom = max_headroom;
if (!new_skb) {
ip_rt_put(rt);
txq->tx_dropped++;
Expand Down

0 comments on commit c428da9

Please sign in to comment.