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:36:19 +0000 (10:36 -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 33632b0..c5d3c83 100644 (file)
 
 static inline void skb_clear_rxhash(struct sk_buff *skb)
 {
-#if HAVE_RXHASH
+#ifdef HAVE_RXHASH
        skb->rxhash = 0;
 #endif
-#if HAVE_L4_RXHASH
+#ifdef HAVE_L4_RXHASH
        skb->l4_rxhash = 0;
 #endif
 }