From: Tom Herbert Date: Wed, 15 Jan 2014 16:57:54 +0000 (-0800) Subject: net: Add skb_get_hash_raw X-Git-Tag: v4.9.8~7055^2~132 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=57bdf7f42be05640f8080b06844c94367ad1884b;p=platform%2Fkernel%2Flinux-rpi3.git net: Add skb_get_hash_raw Function to just return skb->rxhash without checking to see if it needs to be recomputed. Signed-off-by: Tom Herbert Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 48b7605..1f689e6 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -771,6 +771,11 @@ static inline __u32 skb_get_hash(struct sk_buff *skb) return skb->rxhash; } +static inline __u32 skb_get_hash_raw(const struct sk_buff *skb) +{ + return skb->rxhash; +} + static inline void skb_clear_hash(struct sk_buff *skb) { skb->rxhash = 0;