flow_dissector: Abstract out hash computation
authorTom Herbert <therbert@google.com>
Wed, 2 Jul 2014 04:32:05 +0000 (21:32 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jul 2014 04:14:20 +0000 (21:14 -0700)
commit5ed20a68cd6ca4adc0aa2d240913d604a2eb3e25
treea1640d40c35cc9f081d18d8d75f1e1759cad92ee
parent081a20ffccd24d2f5fd06debcff57697fa2ff069
flow_dissector: Abstract out hash computation

Move the hash computation located in __skb_get_hash to be a separate
function which takes flow_keys as input. This will allow flow hash
computation in other contexts where we only have addresses and ports.

Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/flow_keys.h
net/core/flow_dissector.c