net: Add skb_get_hash_raw
authorTom Herbert <therbert@google.com>
Wed, 15 Jan 2014 16:57:54 +0000 (08:57 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Jan 2014 00:22:54 +0000 (16:22 -0800)
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>
include/linux/skbuff.h

index 48b760505cb61eb423857e17b1f23874da9dde33..1f689e62e4cbe58dac7a67e990009bf95e35e99c 100644 (file)
@@ -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;