summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Gross <jesse@nicira.com>2014-05-02 10:33:45 -0700
committerJesse Gross <jesse@nicira.com>2014-05-02 10:38:22 -0700
commitebb7431f6ea6eaffc04f9fff704b8a0f95a4f57a (patch)
treecc9a63d265c132b3a2bb4f4ce9b9ad9491bea290
parent5622edaf65b7e22b3cc5b44320e6e69a78689fe7 (diff)
downloadopenvswitch-ebb7431f6ea6eaffc04f9fff704b8a0f95a4f57a.tar.gz
datapath: Fix feature check for HAVE_RXHASH.
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>
-rw-r--r--datapath/compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/datapath/compat.h b/datapath/compat.h
index 2612163f2..5b2d8b6ec 100644
--- a/datapath/compat.h
+++ b/datapath/compat.h
@@ -51,7 +51,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
}