diff options
| author | Laurent Vivier <lvivier@redhat.com> | 2026-01-19 17:19:14 +0100 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2026-01-20 19:37:46 +0100 |
| commit | 90287c2a774ec5f13214db8384a1c730c6c0b83c (patch) | |
| tree | 7c827f990b96d2ac4e578e30d8e40281574069f1 /test/tcp/git: | |
| parent | 0fbd7af77d5222f46863cfc144f0582bd08eaf29 (diff) | |
| download | passt-90287c2a774ec5f13214db8384a1c730c6c0b83c.tar passt-90287c2a774ec5f13214db8384a1c730c6c0b83c.tar.gz passt-90287c2a774ec5f13214db8384a1c730c6c0b83c.tar.bz2 passt-90287c2a774ec5f13214db8384a1c730c6c0b83c.tar.lz passt-90287c2a774ec5f13214db8384a1c730c6c0b83c.tar.xz passt-90287c2a774ec5f13214db8384a1c730c6c0b83c.tar.zst passt-90287c2a774ec5f13214db8384a1c730c6c0b83c.zip | |
tcp: Register fds with epoll at flow creation
Register connection sockets with epoll using empty events
(events=0) in tcp_conn_from_tap(), tcp_tap_conn_from_sock()
and tcp_flow_repair_socket().
This allows tcp_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.
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/tcp/git:')
0 files changed, 0 insertions, 0 deletions
