Signed-off-by: Pritesh Kothari <pritesh.koth...@cisco.com> --- v1: backporting commit from master to fix skb_clear_rxhash. --- acinclude.m4 | 1 + datapath/compat.h | 3 +++ 2 files changed, 4 insertions(+)
diff --git a/acinclude.m4 b/acinclude.m4 index d1271a4..3b7a5eb 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 3b8d577..2612163 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 } /* -- 1.9.1 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev