aboutgitcodebugslistschat
path: root/tcp_splice.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-11-17 16:58:53 +1100
committerStefano Brivio <sbrivio@redhat.com>2022-11-25 01:35:25 +0100
commit233b95e90f8e9391d93d2187f682eaf51b6f3dd1 (patch)
tree85d80d8cf394f7f905b7354cd29a2eb24ef1523c /tcp_splice.h
parentd909fda1e81979da12ed4ab8b2f2a18fba756a07 (diff)
downloadpasst-233b95e90f8e9391d93d2187f682eaf51b6f3dd1.tar
passt-233b95e90f8e9391d93d2187f682eaf51b6f3dd1.tar.gz
passt-233b95e90f8e9391d93d2187f682eaf51b6f3dd1.tar.bz2
passt-233b95e90f8e9391d93d2187f682eaf51b6f3dd1.tar.lz
passt-233b95e90f8e9391d93d2187f682eaf51b6f3dd1.tar.xz
passt-233b95e90f8e9391d93d2187f682eaf51b6f3dd1.tar.zst
passt-233b95e90f8e9391d93d2187f682eaf51b6f3dd1.zip
tcp: Remove splice from tcp_epoll_ref
Currently the epoll reference for tcp sockets includes a bit indicating whether the socket maps to a spliced connection. However, the reference also has the index of the connection structure which also indicates whether it is spliced. We can therefore avoid the splice bit in the epoll_ref by unifying the first part of the non-spliced and spliced handlers where we look up the connection state. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tcp_splice.h')
-rw-r--r--tcp_splice.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tcp_splice.h b/tcp_splice.h
index 1a915dd..6814ae7 100644
--- a/tcp_splice.h
+++ b/tcp_splice.h
@@ -8,8 +8,8 @@
struct tcp_splice_conn;
-void tcp_sock_handler_splice(struct ctx *c, union epoll_ref ref,
- uint32_t events);
+void tcp_splice_sock_handler(struct ctx *c, struct tcp_splice_conn *conn,
+ int s, uint32_t events);
bool tcp_splice_conn_from_sock(struct ctx *c, union epoll_ref ref,
struct tcp_splice_conn *conn, int s,
const struct sockaddr *sa);