From: Pravin B Shelar Date: Thu, 5 Dec 2013 05:24:49 +0000 (-0800) Subject: datapath: Fix compat skb_get_rxhash() X-Git-Tag: sliver-openvswitch-2.0.90-1~1^2~18 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=3a5edd799e7ae823ef4bb413f998fbf04d376611 datapath: Fix compat skb_get_rxhash() Add missing return statement. Signed-off-by: Pravin B Shelar Acked-by: Jesse Gross --- diff --git a/datapath/linux/compat/include/linux/skbuff.h b/datapath/linux/compat/include/linux/skbuff.h index 9868a9864..79b0b752f 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); }