net: Add functions to get skb->hash based on flow structures
authorTom Herbert <tom@herbertland.com>
Fri, 31 Jul 2015 23:52:10 +0000 (16:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Aug 2015 00:07:11 +0000 (17:07 -0700)
commitf70ea018da0631e10c26a02f5a82d626ffef5bd7
tree7e7df0357c66c6e4824707233faedf96f89fde5e
parentdb316d57b63c07f2ebea596d7e21aa56549f54ab
net: Add functions to get skb->hash based on flow structures

Add skb_get_hash_flowi6 and skb_get_hash_flowi4 which derive an sk_buff
hash from flowi6 and flowi4 structures respectively. These functions
can be called when creating a packet in the output path where the new
sk_buff does not yet contain a fully formed packet that is parsable by
flow dissector.

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