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

index 518a66b..e8a8a2e 100644 (file)
@@ -295,6 +295,7 @@ AC_DEFUN([OVS_CHECK_LINUX_COMPAT], [
   OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_orphan_frags])
   OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_get_hash])
   OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_clear_hash])
+  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 b5caa96..a9dc2e7 100644 (file)
@@ -289,6 +289,9 @@ static inline void skb_clear_hash(struct sk_buff *skb)
 #if HAVE_RXHASH
        skb->rxhash = 0;
 #endif
+#if HAVE_L4_RXHASH
+       skb->l4_rxhash = 0;
+#endif
 }
 #endif