datapath: Fix feature check for HAVE_RXHASH.
authorJesse Gross <jesse@nicira.com>
Fri, 2 May 2014 17:33:45 +0000 (10:33 -0700)
committerJesse Gross <jesse@nicira.com>
Fri, 2 May 2014 17:37:50 +0000 (10:37 -0700)
The check for HAVE_RXHASH use #if rather than #ifdef, which
provokes a warning when it isn't defined.

Signed-off-by: Jesse Gross <jesse@nicira.com>
datapath/compat.h

index 5b0cc13..c2f9d43 100644 (file)
@@ -30,7 +30,7 @@ static inline void skb_clear_rxhash(struct sk_buff *skb)
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)
        skb->rxhash = 0;
 #endif
-#if HAVE_L4_RXHASH
+#ifdef HAVE_L4_RXHASH
        skb->l4_rxhash = 0;
 #endif
 }