Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -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;