diff options
author | Tom Herbert <therbert@google.com> | 2014-07-02 00:32:05 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-08 00:14:20 -0400 |
commit | 5ed20a68cd6ca4adc0aa2d240913d604a2eb3e25 (patch) | |
tree | a1640d40c35cc9f081d18d8d75f1e1759cad92ee /include/net/flow_keys.h | |
parent | 081a20ffccd24d2f5fd06debcff57697fa2ff069 (diff) |
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>
Diffstat (limited to 'include/net/flow_keys.h')
-rw-r--r-- | include/net/flow_keys.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/flow_keys.h b/include/net/flow_keys.h index fbefdca5e283..6667a054763a 100644 --- a/include/net/flow_keys.h +++ b/include/net/flow_keys.h | |||
@@ -29,4 +29,5 @@ struct flow_keys { | |||
29 | 29 | ||
30 | bool skb_flow_dissect(const struct sk_buff *skb, struct flow_keys *flow); | 30 | bool skb_flow_dissect(const struct sk_buff *skb, struct flow_keys *flow); |
31 | __be32 skb_flow_get_ports(const struct sk_buff *skb, int thoff, u8 ip_proto); | 31 | __be32 skb_flow_get_ports(const struct sk_buff *skb, int thoff, u8 ip_proto); |
32 | u32 flow_hash_from_keys(struct flow_keys *keys); | ||
32 | #endif | 33 | #endif |