diff options
author | Pravin B Shelar <pshelar@nicira.com> | 2014-08-27 07:24:44 -0700 |
---|---|---|
committer | Pravin B Shelar <pshelar@nicira.com> | 2014-08-29 09:56:11 -0700 |
commit | 68099101b0bddd7068c7329a2727eacc71ca1ad9 (patch) | |
tree | 7fc5ec7e010151eab277d9a52d2d6aa3dba8d0a1 | |
parent | f446777ad90cdbbe92d31b24c21f6f5a5692fcf7 (diff) | |
download | openvswitch-68099101b0bddd7068c7329a2727eacc71ca1ad9.tar.gz |
datapath: Always initialize fix_segment for GSO packet.
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>
-rw-r--r-- | datapath/linux/compat/gre.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/datapath/linux/compat/gre.c b/datapath/linux/compat/gre.c index 58b1e73e9..61a44f944 100644 --- a/datapath/linux/compat/gre.c +++ b/datapath/linux/compat/gre.c @@ -289,6 +289,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); |