diff options
author | Tom Herbert <therbert@google.com> | 2014-01-15 08:57:54 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-16 16:22:54 -0800 |
commit | 57bdf7f42be05640f8080b06844c94367ad1884b (patch) | |
tree | 91da4922463f2cab9e7b36326c1f0d44608303b3 /include | |
parent | e40c10fc8973ccd6a451a84dd30f16e5c1cd070c (diff) | |
download | lwn-57bdf7f42be05640f8080b06844c94367ad1884b.tar.gz lwn-57bdf7f42be05640f8080b06844c94367ad1884b.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/skbuff.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 48b760505cb6..1f689e62e4cb 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -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; |