summaryrefslogtreecommitdiff
path: root/datapath
diff options
context:
space:
mode:
Diffstat (limited to 'datapath')
-rw-r--r--datapath/datapath.c4
-rw-r--r--datapath/linux/compat/include/linux/skbuff.h10
2 files changed, 2 insertions, 12 deletions
diff --git a/datapath/datapath.c b/datapath/datapath.c
index 52a59f135..8e9b9a706 100644
--- a/datapath/datapath.c
+++ b/datapath/datapath.c
@@ -529,11 +529,7 @@ static int queue_userspace_packet(struct datapath *dp, struct sk_buff *skb,
hash |= OVS_PACKET_HASH_SW_BIT;
#endif
-#ifdef HAVE_L4_RXHASH
- if (skb->l4_rxhash)
-#else
if (skb->l4_hash)
-#endif
hash |= OVS_PACKET_HASH_L4_BIT;
if (nla_put(user_skb, OVS_PACKET_ATTR_HASH, sizeof (u64), &hash)) {
diff --git a/datapath/linux/compat/include/linux/skbuff.h b/datapath/linux/compat/include/linux/skbuff.h
index bc73255d5..396a5e406 100644
--- a/datapath/linux/compat/include/linux/skbuff.h
+++ b/datapath/linux/compat/include/linux/skbuff.h
@@ -278,9 +278,7 @@ static inline void skb_clear_hash(struct sk_buff *skb)
#ifdef HAVE_RXHASH
skb->rxhash = 0;
#endif
-#if defined(HAVE_L4_RXHASH)
- skb->l4_rxhash = 0;
-#endif
+ skb->l4_hash = 0;
}
#endif
@@ -371,7 +369,7 @@ static inline void skb_pop_mac_header(struct sk_buff *skb)
#ifndef HAVE_SKB_CLEAR_HASH_IF_NOT_L4
static inline void skb_clear_hash_if_not_l4(struct sk_buff *skb)
{
- if (!skb->l4_rxhash)
+ if (!skb->l4_hash)
skb_clear_hash(skb);
}
#endif
@@ -465,11 +463,7 @@ __skb_set_hash(struct sk_buff *skb, __u32 hash, bool is_sw, bool is_l4)
#else
skb->hash = hash;
#endif
-#if defined(HAVE_L4_RXHASH)
- skb->l4_rxhash = is_l4;
-#else
skb->l4_hash = is_l4;
-#endif
#ifdef HAVE_SW_HASH
skb->sw_hash = is_sw;
#endif