aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/ip_tunnel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_tunnel.c b/net/ipv4/ip_tunnel.c
index 2272de90c2d4..d9c9dc4ffeaf 100644
--- a/net/ipv4/ip_tunnel.c
+++ b/net/ipv4/ip_tunnel.c
@@ -759,7 +759,7 @@ void ip_tunnel_xmit(struct sk_buff *skb, struct net_device *dev,
759 df |= (inner_iph->frag_off&htons(IP_DF)); 759 df |= (inner_iph->frag_off&htons(IP_DF));
760 760
761 max_headroom = LL_RESERVED_SPACE(rt->dst.dev) + sizeof(struct iphdr) 761 max_headroom = LL_RESERVED_SPACE(rt->dst.dev) + sizeof(struct iphdr)
762 + rt->dst.header_len; 762 + rt->dst.header_len + ip_encap_hlen(&tunnel->encap);
763 if (max_headroom > dev->needed_headroom) 763 if (max_headroom > dev->needed_headroom)
764 dev->needed_headroom = max_headroom; 764 dev->needed_headroom = max_headroom;
765 765