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 <therbert@google.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e40c10fc89
commit
57bdf7f42b
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue