|
@@ -835,6 +835,8 @@ static netdev_tx_t ipgre_tunnel_xmit(struct sk_buff *skb, struct net_device *dev
|
|
if (skb_headroom(skb) < max_headroom || skb_shared(skb)||
|
|
if (skb_headroom(skb) < max_headroom || skb_shared(skb)||
|
|
(skb_cloned(skb) && !skb_clone_writable(skb, 0))) {
|
|
(skb_cloned(skb) && !skb_clone_writable(skb, 0))) {
|
|
struct sk_buff *new_skb = skb_realloc_headroom(skb, max_headroom);
|
|
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) {
|
|
if (!new_skb) {
|
|
ip_rt_put(rt);
|
|
ip_rt_put(rt);
|
|
dev->stats.tx_dropped++;
|
|
dev->stats.tx_dropped++;
|