projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e40c10f
)
net: Add skb_get_hash_raw
author
Tom Herbert
<therbert@google.com>
Wed, 15 Jan 2014 16:57:54 +0000
(08:57 -0800)
committer
David 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
patch
|
blob
|
history
diff --git
a/include/linux/skbuff.h
b/include/linux/skbuff.h
index
48b7605
..
1f689e6
100644
(file)
--- 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;