#include_next <linux/skbuff.h>
+#include <linux/jhash.h>
#include <linux/version.h>
#ifndef HAVE_SKB_COPY_FROM_LINEAR_DATA_OFFSET
{
#ifdef HAVE_RXHASH
if (skb->rxhash)
+#ifndef HAVE_U16_RXHASH
return skb->rxhash;
+#else
+ return jhash_1word(skb->rxhash, 0);
+#endif
#endif
return __skb_get_hash(skb);
}
#ifndef HAVE_SKB_CLEAR_HASH
static inline void skb_clear_hash(struct sk_buff *skb)
{
-#if HAVE_RXHASH
+#ifdef HAVE_RXHASH
skb->rxhash = 0;
#endif
+#ifdef HAVE_L4_RXHASH
+ skb->l4_rxhash = 0;
+#endif
}
#endif