datapath: Add net/ip6_checksum.h to stt.c
authorJason Kölker <jason@koelker.net>
Wed, 2 Sep 2015 22:40:24 +0000 (22:40 +0000)
committerJesse Gross <jesse@nicira.com>
Wed, 2 Sep 2015 22:46:50 +0000 (15:46 -0700)
`csum_ipv6_magic` is an asm inline on most platforms. However if it is
not defined (like on ppc64le) including <net/ip6_checksum.h> will fall
back to the c implementation by wrapping it in an
`#ifndef _HAVE_ARCH_IPV6_CSUM`.

Signed-off-by: Jason Kölker <jason@koelker.net>
Signed-off-by: Jesse Gross <jesse@nicira.com>
datapath/linux/compat/stt.c

index b44f470..dd21753 100644 (file)
@@ -30,6 +30,7 @@
 #include <net/icmp.h>
 #include <net/inet_ecn.h>
 #include <net/ip.h>
+#include <net/ip6_checksum.h>
 #include <net/net_namespace.h>
 #include <net/netns/generic.h>
 #include <net/sock.h>