diff options
author | Pritesh Kothari <pritesh.kothari@cisco.com> | 2014-05-01 15:50:53 -0700 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2014-05-01 23:31:27 -0700 |
commit | 5622edaf65b7e22b3cc5b44320e6e69a78689fe7 (patch) | |
tree | e84f43309fe0012fcbe49293517641c9892896fd | |
parent | 7b6a4c7f45d031d2c1b568fc829995e11b6b2970 (diff) | |
download | openvswitch-5622edaf65b7e22b3cc5b44320e6e69a78689fe7.tar.gz |
datapath: clear l4_rxhash in skb_clear_hash.
Signed-off-by: Pritesh Kothari <pritesh.kothari@cisco.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
-rw-r--r-- | acinclude.m4 | 1 | ||||
-rw-r--r-- | datapath/compat.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index d1271a49b..3b7a5ebb6 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -255,6 +255,7 @@ AC_DEFUN([OVS_CHECK_LINUX_COMPAT], [ OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [consume_skb]) OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_frag_page]) OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [skb_reset_mac_len]) + OVS_GREP_IFELSE([$KSRC/include/linux/skbuff.h], [l4_rxhash]) OVS_GREP_IFELSE([$KSRC/include/linux/string.h], [kmemdup], [], [OVS_GREP_IFELSE([$KSRC/include/linux/slab.h], [kmemdup])]) diff --git a/datapath/compat.h b/datapath/compat.h index 3b8d577ef..2612163f2 100644 --- a/datapath/compat.h +++ b/datapath/compat.h @@ -51,6 +51,9 @@ static inline void skb_clear_rxhash(struct sk_buff *skb) #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35) skb->rxhash = 0; #endif +#if HAVE_L4_RXHASH + skb->l4_rxhash = 0; +#endif } /* |