ip4ip6: Support for GSO/GRO
[cascardo/linux.git] / net / ipv6 / ip6_tunnel.c
index d26d226..823dad1 100644 (file)
@@ -1188,6 +1188,11 @@ ip4ip6_tnl_xmit(struct sk_buff *skb, struct net_device *dev)
        if (t->parms.flags & IP6_TNL_F_USE_ORIG_FWMARK)
                fl6.flowi6_mark = skb->mark;
 
+       if (iptunnel_handle_offloads(skb, SKB_GSO_IPXIP6))
+               return -1;
+
+       skb_set_inner_ipproto(skb, IPPROTO_IPIP);
+
        err = ip6_tnl_xmit(skb, dev, dsfield, &fl6, encap_limit, &mtu,
                           IPPROTO_IPIP);
        if (err != 0) {