net: Add skb_gro_postpull_rcsum to udp and vxlan
authorTom Herbert <therbert@google.com>
Wed, 11 Jun 2014 01:54:26 +0000 (18:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jun 2014 22:46:13 +0000 (15:46 -0700)
Need to gro_postpull_rcsum for GRO to work with checksum complete.

Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c
net/ipv4/udp_offload.c

index 4e2caaf8b5da02a4388820b858b70e485a4cc267..1610d51dbb5c5621499077114ad0b35cd762d19a 100644 (file)
@@ -565,6 +565,7 @@ static struct sk_buff **vxlan_gro_receive(struct sk_buff **head, struct sk_buff
                        goto out;
        }
        skb_gro_pull(skb, sizeof(struct vxlanhdr)); /* pull vxlan header */
+       skb_gro_postpull_rcsum(skb, vh, sizeof(struct vxlanhdr));
 
        off_eth = skb_gro_offset(skb);
        hlen = off_eth + sizeof(*eh);
@@ -599,6 +600,7 @@ static struct sk_buff **vxlan_gro_receive(struct sk_buff **head, struct sk_buff
        }
 
        skb_gro_pull(skb, sizeof(*eh)); /* pull inner eth header */
+       skb_gro_postpull_rcsum(skb, eh, sizeof(*eh));
        pp = ptype->callbacks.gro_receive(head, skb);
 
 out_unlock:
index 7b1840110173964c81f3891b868f19162dffe784..546d2d439dda65a195f7e635b7dc564def1da077 100644 (file)
@@ -200,6 +200,7 @@ unflush:
        }
 
        skb_gro_pull(skb, sizeof(struct udphdr)); /* pull encapsulating udp header */
+       skb_gro_postpull_rcsum(skb, uh, sizeof(struct udphdr));
        pp = uo_priv->offload->callbacks.gro_receive(head, skb);
 
 out_unlock: