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>
This commit is contained in:

committed by
Stefano Brivio

parent
d909fda1e8
commit
233b95e90f
@@ -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);
|
||||
|
Reference in New Issue
Block a user