diff options
author | Pravin B Shelar <pshelar@ovn.org> | 2016-08-01 20:12:06 -0700 |
---|---|---|
committer | Pravin B Shelar <pshelar@ovn.org> | 2016-08-03 09:03:00 -0700 |
commit | 0a0d9095552a1c4b50674c97497f27024dbb4e8f (patch) | |
tree | d7b07bda3ac77bcb0e3cf6366843279a3dabb973 /acinclude.m4 | |
parent | 42e22f951dfbdfe5c6b2e5fc00db31aff435e569 (diff) | |
download | openvswitch-0a0d9095552a1c4b50674c97497f27024dbb4e8f.tar.gz |
datapath: compat: Detect GSO support at ovs configure
OVS turns on tunnel GSO for statically for kernel older than 3.18.
Some distributions kernel could backport tunnel GSO. To make use
of device offload on such kernel detect the support at configure
stage.
Signed-off-by: Pravin B Shelar <pshelar@ovn.org>
Acked-by: Jesse Gross <jesse@kernel.org>
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 49f0781bf..f02166d7d 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -462,6 +462,8 @@ AC_DEFUN([OVS_CHECK_LINUX_COMPAT], [ OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], [__skb_gso_segment]) OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], [can_checksum_protocol]) OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], [ndo_get_iflink]) + OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], [ndo_features_check], + [OVS_DEFINE([USE_UPSTREAM_TUNNEL_GSO])]) OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], [ndo_add_vxlan_port]) OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], [ndo_add_geneve_port]) OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], [netdev_features_t]) |