aboutgitcodebugslistschat
path: root/tcp_conn.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-11-17 16:58:47 +1100
committerStefano Brivio <sbrivio@redhat.com>2022-11-25 01:34:54 +0100
commit0eef48c4be5ae8d9de5fed4daaa1954323e08b96 (patch)
tree6bc82f285ce1eb1959c0282346b403f1013e3d6a /tcp_conn.h
parentee8f8e9564c5bd0ca25a9492e3102655d9ce0620 (diff)
downloadpasst-0eef48c4be5ae8d9de5fed4daaa1954323e08b96.tar
passt-0eef48c4be5ae8d9de5fed4daaa1954323e08b96.tar.gz
passt-0eef48c4be5ae8d9de5fed4daaa1954323e08b96.tar.bz2
passt-0eef48c4be5ae8d9de5fed4daaa1954323e08b96.tar.lz
passt-0eef48c4be5ae8d9de5fed4daaa1954323e08b96.tar.xz
passt-0eef48c4be5ae8d9de5fed4daaa1954323e08b96.tar.zst
passt-0eef48c4be5ae8d9de5fed4daaa1954323e08b96.zip
tcp: Unify tcp_defer_handler and tcp_splice_defer_handler()
These two functions each step through non-spliced and spliced connections respectively and clean up entries for closed connections. To avoid scanning the connection table twice, we merge these into a single function which scans the unified table and performs the appropriate sort of cleanup action on each one. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tcp_conn.h')
-rw-r--r--tcp_conn.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tcp_conn.h b/tcp_conn.h
index 4295f7d..634e259 100644
--- a/tcp_conn.h
+++ b/tcp_conn.h
@@ -200,5 +200,6 @@ extern union tcp_conn tc[];
void tcp_splice_conn_update(struct ctx *c, struct tcp_splice_conn *new);
void tcp_table_compact(struct ctx *c, union tcp_conn *hole);
+void tcp_splice_destroy(struct ctx *c, struct tcp_splice_conn *conn);
#endif /* TCP_CONN_H */