From 1dc1a21e3d1a0073d843b07fef664321b2e332af Mon Sep 17 00:00:00 2001 From: Pravin B Shelar Date: Fri, 6 Dec 2013 11:43:02 -0800 Subject: [PATCH] datapath: compat: Fix compilation for kernel 3.5 ipv6_addr_hash() is not available on kernel 3.5, Use compat version. Signed-off-by: Pravin B Shelar Acked-by: Jesse Gross --- datapath/linux/compat/include/net/ipv6.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datapath/linux/compat/include/net/ipv6.h b/datapath/linux/compat/include/net/ipv6.h index 71f470883..eebb1fe46 100644 --- a/datapath/linux/compat/include/net/ipv6.h +++ b/datapath/linux/compat/include/net/ipv6.h @@ -27,7 +27,7 @@ enum { extern int ipv6_find_hdr(const struct sk_buff *skb, unsigned int *offset, int target, unsigned short *fragoff, int *fragflg); -#if LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,6,0) static inline u32 ipv6_addr_hash(const struct in6_addr *a) { #if defined(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS) && BITS_PER_LONG == 64 -- 2.47.0