Merge branches 'pm-core', 'powercap' and 'pm-tools'
[deliverable/linux.git] / net / ipv4 / gre_offload.c
index 540866dbd27d6663d4647a5eb1a4e8445b1e6a18..c47539d04b88a78457e1f6badc5770cc931b469c 100644 (file)
@@ -49,6 +49,7 @@ static struct sk_buff *gre_gso_segment(struct sk_buff *skb,
 
        /* setup inner skb. */
        skb->encapsulation = 0;
+       SKB_GSO_CB(skb)->encap_level = 0;
        __skb_pull(skb, tnl_hlen);
        skb_reset_mac_header(skb);
        skb_set_network_header(skb, skb_inner_network_offset(skb));
@@ -126,6 +127,11 @@ static struct sk_buff **gre_gro_receive(struct sk_buff **head,
        struct packet_offload *ptype;
        __be16 type;
 
+       if (NAPI_GRO_CB(skb)->encap_mark)
+               goto out;
+
+       NAPI_GRO_CB(skb)->encap_mark = 1;
+
        off = skb_gro_offset(skb);
        hlen = off + sizeof(*greh);
        greh = skb_gro_header_fast(skb, off);
This page took 0.025638 seconds and 5 git commands to generate.