RHEL 6.6 kernel percpu APIs are broken, so following patch is using OVS
backported version.
Reported-by: Wang Sheng-Hui <shhuiw@gmail.com>
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
#define this_cpu_ptr(ptr) per_cpu_ptr(ptr, smp_processor_id())
#endif
+#ifdef HAVE_RHEL_OVS_HOOK
+#undef this_cpu_read
+#undef this_cpu_inc
+#undef this_cpu_dec
+#endif
+
#if !defined this_cpu_read
#define this_cpu_read(ptr) percpu_read(ptr)
#endif
#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
}