From 233b95e90f8e9391d93d2187f682eaf51b6f3dd1 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Thu, 17 Nov 2022 16:58:53 +1100 Subject: 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 Signed-off-by: Stefano Brivio --- tcp.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'tcp.h') diff --git a/tcp.h b/tcp.h index f4ed298..a940682 100644 --- a/tcp.h +++ b/tcp.h @@ -32,7 +32,6 @@ void tcp_update_l2_buf(const unsigned char *eth_d, const unsigned char *eth_s, /** * union tcp_epoll_ref - epoll reference portion for TCP connections * @listen: Set if this file descriptor is a listening socket - * @splice: Set if descriptor is associated to a spliced connection * @outbound: Listening socket maps to outbound, spliced connection * @v6: Set for IPv6 sockets or connections * @timer: Reference is a timerfd descriptor for connection @@ -42,7 +41,6 @@ void tcp_update_l2_buf(const unsigned char *eth_d, const unsigned char *eth_s, union tcp_epoll_ref { struct { uint32_t listen:1, - splice:1, outbound:1, v6:1, timer:1, -- cgit v1.2.3