Commit 57bdf7f4 authored by Tom Herbert's avatar Tom Herbert Committed by David S. Miller

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: default avatarTom Herbert <therbert@google.com>
Acked-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e40c10fc
...@@ -771,6 +771,11 @@ static inline __u32 skb_get_hash(struct sk_buff *skb) ...@@ -771,6 +771,11 @@ static inline __u32 skb_get_hash(struct sk_buff *skb)
return skb->rxhash; 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) static inline void skb_clear_hash(struct sk_buff *skb)
{ {
skb->rxhash = 0; skb->rxhash = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment