mirror of
https://passt.top/passt
synced 2025-06-11 10:05:34 +02:00
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>
This commit is contained in:
parent
ee8f8e9564
commit
0eef48c4be
4 changed files with 13 additions and 33 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue