flowi: Abstract out functions to get flow hash based on flowi
authorTom Herbert <tom@herbertland.com>
Tue, 1 Sep 2015 16:24:25 +0000 (09:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Sep 2015 22:06:22 +0000 (15:06 -0700)
commitc6cc1ca7f4d70cbb3ea3a5ca163c5dabaf155cdb
treeba007b3db243d74a4dfc2d7dd9d48427b9a19419
parentbcc83839ffdb063dd2b0370cd85c4f825761fc59
flowi: Abstract out functions to get flow hash based on flowi

Create __get_hash_from_flowi6 and __get_hash_from_flowi4 to get the
flow keys and hash based on flowi structures. These are called by
__skb_get_hash_flowi6 and __skb_get_hash_flowi4. Also, created
get_hash_from_flowi6 and get_hash_from_flowi4 which can be called
when just the hash value for a flowi is needed.

Signed-off-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
include/net/flow.h
include/net/flow_dissector.h
net/core/flow.c