aboutgitcodebugslistschat
path: root/flow.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-07-18 15:26:41 +1000
committerStefano Brivio <sbrivio@redhat.com>2024-07-19 18:33:23 +0200
commit781164e25bdf3e99233ab585f02c72525cfb79c5 (patch)
tree29426a9fc994eb9a6baff6791c422d455ebcbd01 /flow.h
parent2faf6fcd8b542537a70d8aada644ed7a073f78d0 (diff)
downloadpasst-781164e25bdf3e99233ab585f02c72525cfb79c5.tar
passt-781164e25bdf3e99233ab585f02c72525cfb79c5.tar.gz
passt-781164e25bdf3e99233ab585f02c72525cfb79c5.tar.bz2
passt-781164e25bdf3e99233ab585f02c72525cfb79c5.tar.lz
passt-781164e25bdf3e99233ab585f02c72525cfb79c5.tar.xz
passt-781164e25bdf3e99233ab585f02c72525cfb79c5.tar.zst
passt-781164e25bdf3e99233ab585f02c72525cfb79c5.zip
flow: Helper to create sockets based on flowside
We have upcoming use cases where it's useful to create new bound socket based on information from the flow table. Add flowside_sock_l4() to do this for either PIF_HOST or PIF_SPLICE sockets. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'flow.h')
-rw-r--r--flow.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/flow.h b/flow.h
index e3a778a..bf6b845 100644
--- a/flow.h
+++ b/flow.h
@@ -164,6 +164,9 @@ static inline bool flowside_eq(const struct flowside *left,
left->fport == right->fport;
}
+int flowside_sock_l4(const struct ctx *c, enum epoll_type type, uint8_t pif,
+ const struct flowside *tgt, uint32_t data);
+
/**
* struct flow_common - Common fields for packet flows
* @state: State of the flow table entry