aboutgitcodebugslistschat
path: root/tcp_conn.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-11-17 16:58:48 +1100
committerStefano Brivio <sbrivio@redhat.com>2022-11-25 01:34:58 +0100
commit34476511f724d52ef4d944627ee741e33c1ba3d7 (patch)
tree800d82e777d723b3c3aca5b9f47069efa029bdea /tcp_conn.h
parent0eef48c4be5ae8d9de5fed4daaa1954323e08b96 (diff)
downloadpasst-34476511f724d52ef4d944627ee741e33c1ba3d7.tar
passt-34476511f724d52ef4d944627ee741e33c1ba3d7.tar.gz
passt-34476511f724d52ef4d944627ee741e33c1ba3d7.tar.bz2
passt-34476511f724d52ef4d944627ee741e33c1ba3d7.tar.lz
passt-34476511f724d52ef4d944627ee741e33c1ba3d7.tar.xz
passt-34476511f724d52ef4d944627ee741e33c1ba3d7.tar.zst
passt-34476511f724d52ef4d944627ee741e33c1ba3d7.zip
tcp: Partially unify tcp_timer() and tcp_splice_timer()
These two functions scan all the non-splced and spliced connections respectively and perform timed updates on them. Avoid scanning the now unified table twice, by having tcp_timer scan it once calling the relevant per-connection function for 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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tcp_conn.h b/tcp_conn.h
index 634e259..7c450a0 100644
--- a/tcp_conn.h
+++ b/tcp_conn.h
@@ -201,5 +201,8 @@ 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);
+void tcp_splice_timer(struct ctx *c, struct tcp_splice_conn *conn);
+void tcp_splice_pipe_refill(const struct ctx *c);
+
#endif /* TCP_CONN_H */