net: Add skb_get_hash_perturb
authorTom Herbert <tom@herbertland.com>
Fri, 1 May 2015 18:30:12 +0000 (11:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 May 2015 04:09:08 +0000 (00:09 -0400)
commit50fb799289501c2eab9f43fc9af513027e1e994f
tree9ba5b2cb65890f0cd95c00f743da1b2bd71722cc
parent6a21165480a066a27c1f1dbd32aec581c612ba23
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>
include/linux/skbuff.h
net/core/flow_dissector.c