diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2022-11-17 16:58:48 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-11-25 01:34:58 +0100 |
commit | 34476511f724d52ef4d944627ee741e33c1ba3d7 (patch) | |
tree | 800d82e777d723b3c3aca5b9f47069efa029bdea /tcp_conn.h | |
parent | 0eef48c4be5ae8d9de5fed4daaa1954323e08b96 (diff) | |
download | passt-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 */ |