diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2024-07-18 15:26:48 +1000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-07-19 18:33:45 +0200 |
commit | 8126f7a66009f3caaf54ed5044b0eabd5ced61a2 (patch) | |
tree | f013f339864cce58cb6c315a922dbd9d1e44f9eb /udp.h | |
parent | e0647ad80c63fcad6a9dc31541881fa02aeaac98 (diff) | |
download | passt-8126f7a66009f3caaf54ed5044b0eabd5ced61a2.tar passt-8126f7a66009f3caaf54ed5044b0eabd5ced61a2.tar.gz passt-8126f7a66009f3caaf54ed5044b0eabd5ced61a2.tar.bz2 passt-8126f7a66009f3caaf54ed5044b0eabd5ced61a2.tar.lz passt-8126f7a66009f3caaf54ed5044b0eabd5ced61a2.tar.xz passt-8126f7a66009f3caaf54ed5044b0eabd5ced61a2.tar.zst passt-8126f7a66009f3caaf54ed5044b0eabd5ced61a2.zip |
udp: Remove obsolete splice tracking
Now that spliced datagrams are managed via the flow table, remove
UDP_ACT_SPLICE_NS and UDP_ACT_SPLICE_INIT which are no longer used. With
those removed, the 'ts' field in udp_splice_port is also no longer used.
struct udp_splice_port now contains just a socket fd, so replace it with
a plain int in udp_splice_ns[] and udp_splice_init[]. The latter are still
used for tracking of automatic port forwarding.
Finally, the 'splice' field of union udp_epoll_ref is no longer used so
remove it as well.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'udp.h')
-rw-r--r-- | udp.h | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -26,8 +26,6 @@ void udp_update_l2_buf(const unsigned char *eth_d, const unsigned char *eth_s); * union udp_epoll_ref - epoll reference portion for TCP connections * @port: Source port for connected sockets, bound port otherwise * @pif: pif for this socket - * @bound: Set if this file descriptor is a bound socket - * @splice: Set if descriptor packets to be "spliced" * @orig: Set if a spliced socket which can originate "connections" * @v6: Set for IPv6 sockets or connections * @u32: Opaque u32 value of reference @@ -36,8 +34,7 @@ union udp_epoll_ref { struct { in_port_t port; uint8_t pif; - bool splice:1, - orig:1, + bool orig:1, v6:1; }; uint32_t u32; |