Skip to content

Commit

Permalink
datapath: Fix compat skb_get_rxhash()
Browse files Browse the repository at this point in the history
Add missing return statement.

Signed-off-by: Pravin B Shelar <[email protected]>
Acked-by: Jesse Gross <[email protected]>
  • Loading branch information
Pravin B Shelar committed Dec 3, 2013
1 parent 1650405 commit 97e9555
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion datapath/linux/compat/include/linux/skbuff.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 97e9555

Please sign in to comment.