[ovs-dev] datapath: Add net/ip6_checksum.h to stt.c
diff mbox

Message ID 1441233624-5240-1-git-send-email-jason@koelker.net
State Accepted
Headers show

Commit Message

Jason Kölker Sept. 2, 2015, 10:40 p.m. UTC
`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>
---
 datapath/linux/compat/stt.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Jesse Gross Sept. 2, 2015, 10:48 p.m. UTC | #1
On Wed, Sep 2, 2015 at 3:40 PM, Jason Kölker <jason@koelker.net> wrote:
> `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>

Thanks, applied to master and branch-2.4.

Patch
diff mbox

diff --git a/datapath/linux/compat/stt.c b/datapath/linux/compat/stt.c
index b44f470..dd21753 100644
--- a/datapath/linux/compat/stt.c
+++ b/datapath/linux/compat/stt.c
@@ -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>