|
@@ -642,13 +642,13 @@ void ip_tunnel_xmit(struct sk_buff *skb, struct net_device *dev,
|
|
|
|
|
|
max_headroom = LL_RESERVED_SPACE(rt->dst.dev) + sizeof(struct iphdr)
|
|
|
+ rt->dst.header_len;
|
|
|
- if (max_headroom > dev->needed_headroom) {
|
|
|
+ if (max_headroom > dev->needed_headroom)
|
|
|
dev->needed_headroom = max_headroom;
|
|
|
- if (skb_cow_head(skb, dev->needed_headroom)) {
|
|
|
- dev->stats.tx_dropped++;
|
|
|
- dev_kfree_skb(skb);
|
|
|
- return;
|
|
|
- }
|
|
|
+
|
|
|
+ if (skb_cow_head(skb, dev->needed_headroom)) {
|
|
|
+ dev->stats.tx_dropped++;
|
|
|
+ dev_kfree_skb(skb);
|
|
|
+ return;
|
|
|
}
|
|
|
|
|
|
err = iptunnel_xmit(rt, skb, fl4.saddr, fl4.daddr, protocol,
|