aboutgitcodebugslistschat
path: root/test
diff options
context:
space:
mode:
authorLaurent Vivier <lvivier@redhat.com>2026-01-19 17:19:13 +0100
committerStefano Brivio <sbrivio@redhat.com>2026-01-20 19:37:39 +0100
commit0fbd7af77d5222f46863cfc144f0582bd08eaf29 (patch)
tree9523af7635840e6ab17bab3f60b175b60848bf35 /test
parentcee7eb0dbf89cc096b8dea50999c6b90708defe4 (diff)
downloadpasst-0fbd7af77d5222f46863cfc144f0582bd08eaf29.tar
passt-0fbd7af77d5222f46863cfc144f0582bd08eaf29.tar.gz
passt-0fbd7af77d5222f46863cfc144f0582bd08eaf29.tar.bz2
passt-0fbd7af77d5222f46863cfc144f0582bd08eaf29.tar.lz
passt-0fbd7af77d5222f46863cfc144f0582bd08eaf29.tar.xz
passt-0fbd7af77d5222f46863cfc144f0582bd08eaf29.tar.zst
passt-0fbd7af77d5222f46863cfc144f0582bd08eaf29.zip
tcp_splice: Register fds with epoll at flow creation
Register both splice connection sockets with epoll using empty events (events=0) in tcp_splice_connect(), before initiating the connection. This allows tcp_splice_epoll_ctl() to always use EPOLL_CTL_MOD, removing the need to check whether fds are already registered. As a result, the conditional ADD/MOD logic is no longer needed, simplifying the function. If the second flow_epoll_set() fails after the first succeeds, we don't need explicit rollback: tcp_splice_conn_from_sock() sets the CLOSING flag on error, and conn_flag() handles it by calling epoll_del() for both sockets. Signed-off-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions