summaryrefslogtreecommitdiffstats
path: root/include/linux/skbuff.h
diff options
context:
space:
mode:
authorTom Herbert2014-01-15 17:57:54 +0100
committerDavid S. Miller2014-01-17 01:22:54 +0100
commit57bdf7f42be05640f8080b06844c94367ad1884b (patch)
tree91da4922463f2cab9e7b36326c1f0d44608303b3 /include/linux/skbuff.h
parentvxge: make local functions static (diff)
downloadkernel-qcow2-linux-57bdf7f42be05640f8080b06844c94367ad1884b.tar.gz
kernel-qcow2-linux-57bdf7f42be05640f8080b06844c94367ad1884b.tar.xz
kernel-qcow2-linux-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/linux/skbuff.h')
-rw-r--r--include/linux/skbuff.h5
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;