]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/ipv4/gre_offload.c
net-gre-gro: Fix a bug that breaks the forwarding path
[karo-tx-linux.git] / net / ipv4 / gre_offload.c
index eb92deb12666fb56b6a289c55b8205fc27117933..f0bdd47bbbcb5f420e9c3e406ca9dd1e83d0e554 100644 (file)
@@ -263,6 +263,9 @@ static int gre_gro_complete(struct sk_buff *skb, int nhoff)
        int err = -ENOENT;
        __be16 type;
 
+       skb->encapsulation = 1;
+       skb_shinfo(skb)->gso_type = SKB_GSO_GRE;
+
        type = greh->protocol;
        if (greh->flags & GRE_KEY)
                grehlen += GRE_HEADER_SECTION;