datapath: Fix compat skb_get_rxhash()
authorPravin B Shelar <pshelar@nicira.com>
Thu, 5 Dec 2013 05:24:49 +0000 (21:24 -0800)
committerPravin B Shelar <pshelar@nicira.com>
Tue, 3 Dec 2013 16:52:58 +0000 (08:52 -0800)
Add missing return statement.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/linux/compat/include/linux/skbuff.h

index a486096..fd0426a 100644 (file)
@@ -224,7 +224,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);
 }