datapath: compat: Fix compilation for kernel 3.5
authorPravin B Shelar <pshelar@nicira.com>
Fri, 6 Dec 2013 19:43:02 +0000 (11:43 -0800)
committerPravin B Shelar <pshelar@nicira.com>
Wed, 4 Dec 2013 12:38:44 +0000 (04:38 -0800)
ipv6_addr_hash() is not available on kernel 3.5, Use compat version.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/linux/compat/include/net/ipv6.h

index 71f4708..eebb1fe 100644 (file)
@@ -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