diff options
Diffstat (limited to 'datapath')
-rw-r--r-- | datapath/linux/compat/ip6_gre.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/datapath/linux/compat/ip6_gre.c b/datapath/linux/compat/ip6_gre.c index be981cda4..90dddece6 100644 --- a/datapath/linux/compat/ip6_gre.c +++ b/datapath/linux/compat/ip6_gre.c @@ -1103,7 +1103,7 @@ static netdev_tx_t ip6erspan_tunnel_xmit(struct sk_buff *skb, (ntohs(ipv6_hdr(skb)->payload_len) > skb->len - thoff)) truncate = true; - if (skb_cow_head(skb, dev->needed_headroom)) + if (skb_cow_head(skb, dev->needed_headroom ? : t->hlen)) goto tx_err; t->parms.o_flags &= ~TUNNEL_KEY; |