datapath: clear l4_rxhash in skb_clear_hash.
authorPritesh Kothari <pritesh.kothari@cisco.com>
Thu, 1 May 2014 22:50:51 +0000 (15:50 -0700)
committerJesse Gross <jesse@nicira.com>
Fri, 2 May 2014 06:28:56 +0000 (23:28 -0700)
Signed-off-by: Pritesh Kothari <pritesh.kothari@cisco.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
acinclude.m4
datapath/compat.h

index b675e41..f51d66b 100644 (file)
@@ -263,6 +263,7 @@ AC_DEFUN([OVS_CHECK_LINUX_COMPAT], [
   OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_reset_mac_len])
   OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_unclone])
   OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_orphan_frags])
+  OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [l4_rxhash])
 
   OVS_GREP_IFELSE([$KSRC/include/linux/types.h], [bool],
                   [OVS_DEFINE([HAVE_BOOL_TYPE])])
index bc7e880..33632b0 100644 (file)
 
 static inline void skb_clear_rxhash(struct sk_buff *skb)
 {
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)
+#if HAVE_RXHASH
        skb->rxhash = 0;
 #endif
+#if HAVE_L4_RXHASH
+       skb->l4_rxhash = 0;
+#endif
 }
 
 #ifdef HAVE_PARALLEL_OPS