datapath: compat: Fix build on RHEL 6.6
authorPravin B Shelar <pshelar@nicira.com>
Wed, 19 Nov 2014 15:47:04 +0000 (07:47 -0800)
committerPravin B Shelar <pshelar@nicira.com>
Wed, 19 Nov 2014 23:53:38 +0000 (15:53 -0800)
Reported-by: Wang Sheng-Hui <shhuiw@gmail.com>
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
datapath/linux/compat/include/linux/skbuff.h

index a016213..23e69c0 100644 (file)
@@ -298,7 +298,7 @@ static inline void skb_clear_hash(struct sk_buff *skb)
 #ifdef HAVE_RXHASH
        skb->rxhash = 0;
 #endif
-#ifdef HAVE_L4_RXHASH
+#if defined(HAVE_L4_RXHASH) && !defined(HAVE_RHEL_OVS_HOOK)
        skb->l4_rxhash = 0;
 #endif
 }