diff options
author | Jesse Gross <jesse@nicira.com> | 2015-02-18 14:27:17 -0800 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2015-02-20 15:34:25 -0800 |
commit | 9ffdbf41192d8455e0031da5361fb7645909dd9e (patch) | |
tree | 1b1078bca65fe997bbb1abab36bfa101e61e652b /datapath/linux/compat/vxlan.c | |
parent | cabd55169e8a175e6c9dd3dbf24ec511b6e16123 (diff) | |
download | openvswitch-9ffdbf41192d8455e0031da5361fb7645909dd9e.tar.gz |
datapath: Enable OVS GSO to be used up to 3.18 if necessary.
There are two important GSO tunnel features that were introduced
after the 3.12 cutoff for our current out of tree GSO implementation:
* 3.16 introduced support for outer UDP checksums.
* 3.18 introduced support for verifying hardware support for protocols
other than VXLAN.
In cases where these features are used, we should use OVS GSO to
ensure correct behavior. However, we also want to continue to use
kernel GSO or hardware TSO in existing situations. Therefore, this
extends the range of kernels where OVS GSO is available to 3.18 and
makes it easier to select which one to use.
Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Thomas Graf <tgraf@noironetworks.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
Diffstat (limited to 'datapath/linux/compat/vxlan.c')
-rw-r--r-- | datapath/linux/compat/vxlan.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/datapath/linux/compat/vxlan.c b/datapath/linux/compat/vxlan.c index 9585c8dd4..7b25aaa02 100644 --- a/datapath/linux/compat/vxlan.c +++ b/datapath/linux/compat/vxlan.c @@ -62,13 +62,11 @@ #include "gso.h" #include "vlan.h" -#if LINUX_VERSION_CODE < KERNEL_VERSION(3,18,0) /* VXLAN protocol header */ struct vxlanhdr { __be32 vx_flags; __be32 vx_vni; }; -#endif /* Callback from net/ipv4/udp.c to receive packets */ static int vxlan_udp_encap_recv(struct sock *sk, struct sk_buff *skb) |