summaryrefslogtreecommitdiffstats
path: root/include/linux/skbuff.h
diff options
context:
space:
mode:
authorTom Herbert2015-05-01 20:30:12 +0200
committerDavid S. Miller2015-05-04 06:09:08 +0200
commit50fb799289501c2eab9f43fc9af513027e1e994f (patch)
tree9ba5b2cb65890f0cd95c00f743da1b2bd71722cc /include/linux/skbuff.h
parentnet: ipv4: route: Fix sending IGMP messages with link address (diff)
downloadkernel-qcow2-linux-50fb799289501c2eab9f43fc9af513027e1e994f.tar.gz
kernel-qcow2-linux-50fb799289501c2eab9f43fc9af513027e1e994f.tar.xz
kernel-qcow2-linux-50fb799289501c2eab9f43fc9af513027e1e994f.zip
net: Add skb_get_hash_perturb
This calls flow_disect and __skb_get_hash to procure a hash for a packet. Input includes a key to initialize jhash. This function does not set skb->hash. Signed-off-by: Tom Herbert <tom@herbertland.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r--include/linux/skbuff.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 66e374d62f64..acb83e249e3f 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -927,6 +927,8 @@ static inline __u32 skb_get_hash(struct sk_buff *skb)
return skb->hash;
}
+__u32 skb_get_hash_perturb(const struct sk_buff *skb, u32 perturb);
+
static inline __u32 skb_get_hash_raw(const struct sk_buff *skb)
{
return skb->hash;