datapath: Always initialize fix_segment for GSO packet.
authorPravin B Shelar <pshelar@nicira.com>
Wed, 27 Aug 2014 14:24:44 +0000 (07:24 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Fri, 29 Aug 2014 16:54:26 +0000 (09:54 -0700)
OVS tunnel compat code depends on this function pointer to
handle GSO packet. Currently we do not initialize for all
GRE GSO packets. Following patch fixes that.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/linux/compat/gre.c

index 07b270a..8c133de 100644 (file)
@@ -292,6 +292,8 @@ struct sk_buff *gre_handle_offloads(struct sk_buff *skb, bool gre_csum)
        if (skb_is_gso(skb)) {
                if (gre_csum)
                        OVS_GSO_CB(skb)->fix_segment = gre_csum_fix;
+               else
+                       OVS_GSO_CB(skb)->fix_segment = NULL;
        } else {
                if (skb->ip_summed == CHECKSUM_PARTIAL && gre_csum) {
                        err = skb_checksum_help(skb);