[ovs-dev] [PATCH] datapath: Fix compat skb_get_rxhash()

Pravin B Shelar pshelar at nicira.com
Thu Dec 5 05:24:49 UTC 2013


Add missing return statement.

Signed-off-by: Pravin B Shelar <pshelar at nicira.com>
---
 datapath/linux/compat/include/linux/skbuff.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/datapath/linux/compat/include/linux/skbuff.h b/datapath/linux/compat/include/linux/skbuff.h
index 9868a98..79b0b75 100644
--- a/datapath/linux/compat/include/linux/skbuff.h
+++ b/datapath/linux/compat/include/linux/skbuff.h
@@ -218,7 +218,8 @@ extern u32 __skb_get_rxhash(struct sk_buff *skb);
 static inline __u32 skb_get_rxhash(struct sk_buff *skb)
 {
 #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,34)
-	if (!skb->rxhash)
+	if (skb->rxhash)
+		return skb->rxhash;
 #endif
 	return __skb_get_rxhash(skb);
 }
-- 
1.7.1




More information about the dev mailing list