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>
This commit is contained in:

committed by
David S. Miller

parent
081a20ffcc
commit
5ed20a68cd
@@ -29,4 +29,5 @@ struct flow_keys {
|
||||
|
||||
bool skb_flow_dissect(const struct sk_buff *skb, struct flow_keys *flow);
|
||||
__be32 skb_flow_get_ports(const struct sk_buff *skb, int thoff, u8 ip_proto);
|
||||
u32 flow_hash_from_keys(struct flow_keys *keys);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user