datapath: Add compile time check for rxhash
[sliver-openvswitch.git] / datapath / linux / compat / flow_dissector.c
index f176f9a..7a0d09b 100644 (file)
@@ -226,7 +226,7 @@ u32 __skb_get_rxhash(struct sk_buff *skb)
        if (!hash)
                hash = 1;
 
-#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,34)
+#ifdef HAVE_RXHASH
        skb->rxhash = hash;
 #endif
        return hash;