From: Pravin B Shelar Date: Fri, 6 Dec 2013 19:43:02 +0000 (-0800) Subject: datapath: compat: Fix compilation for kernel 3.5 X-Git-Tag: v2.1.0~210 X-Git-Url: http://git.cascardo.eti.br/?a=commitdiff_plain;h=1dc1a21e3d1a0073d843b07fef664321b2e332af;p=cascardo%2Fovs.git 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 --- 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