summaryrefslogtreecommitdiffstats
path: root/include/linux/skbuff.h
diff options
context:
space:
mode:
authorTom Herbert <tom@herbertland.com>2015-05-01 11:30:12 -0700
committerDavid S. Miller <davem@davemloft.net>2015-05-04 00:09:08 -0400
commit50fb799289501c2eab9f43fc9af513027e1e994f (patch)
tree9ba5b2cb65890f0cd95c00f743da1b2bd71722cc /include/linux/skbuff.h
parent6a21165480a066a27c1f1dbd32aec581c612ba23 (diff)
downloadop-kernel-dev-50fb799289501c2eab9f43fc9af513027e1e994f.zip
op-kernel-dev-50fb799289501c2eab9f43fc9af513027e1e994f.tar.gz
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 66e374d..acb83e2 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;
OpenPOWER on IntegriCloud