summaryrefslogtreecommitdiffstats
path: root/include/net/flow_dissector.h
diff options
context:
space:
mode:
authorTom Herbert2015-09-01 18:24:25 +0200
committerDavid S. Miller2015-09-02 00:06:22 +0200
commitc6cc1ca7f4d70cbb3ea3a5ca163c5dabaf155cdb (patch)
treeba007b3db243d74a4dfc2d7dd9d48427b9a19419 /include/net/flow_dissector.h
parentskbuff: Make __skb_set_sw_hash a general function (diff)
downloadkernel-qcow2-linux-c6cc1ca7f4d70cbb3ea3a5ca163c5dabaf155cdb.tar.gz
kernel-qcow2-linux-c6cc1ca7f4d70cbb3ea3a5ca163c5dabaf155cdb.tar.xz
kernel-qcow2-linux-c6cc1ca7f4d70cbb3ea3a5ca163c5dabaf155cdb.zip
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>
Diffstat (limited to 'include/net/flow_dissector.h')
-rw-r--r--include/net/flow_dissector.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/flow_dissector.h b/include/net/flow_dissector.h
index af76c496f7db..74fe160f0b05 100644
--- a/include/net/flow_dissector.h
+++ b/include/net/flow_dissector.h
@@ -172,4 +172,6 @@ static inline bool flow_keys_have_l4(struct flow_keys *keys)
return (keys->ports.ports || keys->tags.flow_label);
}
+u32 flow_hash_from_keys(struct flow_keys *keys);
+
#endif