diff options
author | Pravin B Shelar <pshelar@ovn.org> | 2016-07-25 17:49:53 -0700 |
---|---|---|
committer | Pravin B Shelar <pshelar@ovn.org> | 2016-07-26 16:55:27 -0700 |
commit | c77d947191b0ad86aa590f9327677bd2492e44e8 (patch) | |
tree | 2ac0eeb7cdeac33a016af6d10084a31bcaff2fd9 /acinclude.m4 | |
parent | 2defb84eef5fc194d33cd0c27fd641b9a380a10f (diff) | |
download | openvswitch-c77d947191b0ad86aa590f9327677bd2492e44e8.tar.gz |
datapath: compat: fix udp checksum calculation
In upstream linux kernel networking stack udp_set_csum() is called
with only udp header applied but in case of compat layer it can
be called with IP header. So following patch take the offset into
account.
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 | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 5f38539c1..3f31e5f0e 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -639,7 +639,6 @@ AC_DEFUN([OVS_CHECK_LINUX_COMPAT], [ [OVS_GREP_IFELSE([$KSRC/include/net/udp.h], [inet_get_local_port_range(net], [OVS_DEFINE([HAVE_UDP_FLOW_SRC_PORT])])]) OVS_GREP_IFELSE([$KSRC/include/net/udp.h], [udp_v4_check]) - OVS_GREP_IFELSE([$KSRC/include/net/udp.h], [udp_set_csum]) OVS_GREP_IFELSE([$KSRC/include/net/udp_tunnel.h], [udp_tunnel_gro_complete]) OVS_FIND_FIELD_IFELSE([$KSRC/include/net/udp_tunnel.h], [udp_tunnel_sock_cfg], [gro_receive]) |