You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.1 KiB

  1. From 554daf066bf4a8eb7bbc8edc1a877a3afc0de38d Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Jason=20K=C3=B6lker?= <jason@koelker.net>
  3. Date: Wed, 2 Sep 2015 22:40:24 +0000
  4. Subject: [PATCH] datapath: Add net/ip6_checksum.h to stt.c
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. `csum_ipv6_magic` is an asm inline on most platforms. However if it is
  9. not defined (like on ppc64le) including <net/ip6_checksum.h> will fall
  10. back to the c implementation by wrapping it in an
  11. `#ifndef _HAVE_ARCH_IPV6_CSUM`.
  12. Signed-off-by: Jason Kölker <jason@koelker.net>
  13. Signed-off-by: Jesse Gross <jesse@nicira.com>
  14. ---
  15. datapath/linux/compat/stt.c | 1 +
  16. 1 file changed, 1 insertion(+)
  17. diff --git a/datapath/linux/compat/stt.c b/datapath/linux/compat/stt.c
  18. index b44f470..dd21753 100644
  19. --- a/datapath/linux/compat/stt.c
  20. +++ b/datapath/linux/compat/stt.c
  21. @@ -30,6 +30,7 @@
  22. #include <net/icmp.h>
  23. #include <net/inet_ecn.h>
  24. #include <net/ip.h>
  25. +#include <net/ip6_checksum.h>
  26. #include <net/net_namespace.h>
  27. #include <net/netns/generic.h>
  28. #include <net/sock.h>
  29. --
  30. 2.1.4