]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9a8188efdbd2931daabbc7f3e9c691b1f6578007
treea1640d40c35cc9f081d18d8d75f1e1759cad92ee
parentbe64e0f4b9e17de510fb6429b916ea3c411c7ef2
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