mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 08:08:54 +00:00
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
1 changed files with 5 additions and 0 deletions
|
@ -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