aboutgitcodebugslistschat
path: root/flow_table.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-07-18 15:26:35 +1000
committerStefano Brivio <sbrivio@redhat.com>2024-07-19 18:32:59 +0200
commitacca4235c46f0b2ecceb991d75a09616309afb3c (patch)
tree92fb7375f3481b958f96c8124db6f5b7dd469874 /flow_table.h
parent163a339214dd34696ce485930f35ed21c86057f0 (diff)
downloadpasst-acca4235c46f0b2ecceb991d75a09616309afb3c.tar
passt-acca4235c46f0b2ecceb991d75a09616309afb3c.tar.gz
passt-acca4235c46f0b2ecceb991d75a09616309afb3c.tar.bz2
passt-acca4235c46f0b2ecceb991d75a09616309afb3c.tar.lz
passt-acca4235c46f0b2ecceb991d75a09616309afb3c.tar.xz
passt-acca4235c46f0b2ecceb991d75a09616309afb3c.tar.zst
passt-acca4235c46f0b2ecceb991d75a09616309afb3c.zip
flow, tcp: Generalise TCP hash table to general flow hash table
Move the data structures and helper functions for the TCP hash table to flow.c, making it a general hash table indexing sides of flows. This is largely code motion and straightforward renames. There are two semantic changes: * flow_lookup_af() now needs to verify that the entry has a matching protocol and interface as well as matching addresses and ports. * We double the size of the hash table, because it's now at least theoretically possible for both sides of each flow to be hashed. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'flow_table.h')
-rw-r--r--flow_table.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/flow_table.h b/flow_table.h
index b3cb546..aabdbb7 100644
--- a/flow_table.h
+++ b/flow_table.h
@@ -146,7 +146,4 @@ void flow_activate(struct flow_common *f);
#define FLOW_ACTIVATE(flow_) \
(flow_activate(&(flow_)->f))
-uint64_t flow_hash(const struct ctx *c, uint8_t proto, uint8_t pif,
- const struct flowside *side);
-
#endif /* FLOW_TABLE_H */