diff options
| author | Laurent Vivier <lvivier@redhat.com> | 2026-05-20 17:18:27 +0200 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2026-05-26 12:18:24 +0200 |
| commit | 21ea343b465ac9aec74d0694a2cd6a46e3838874 (patch) | |
| tree | 7cc7d0c5ab90724a7da6eafeaa0445f2d3d9a258 /test | |
| parent | feb9a11d757dd6c07c1b2d1db507e0dde237d78b (diff) | |
| download | passt-21ea343b465ac9aec74d0694a2cd6a46e3838874.tar passt-21ea343b465ac9aec74d0694a2cd6a46e3838874.tar.gz passt-21ea343b465ac9aec74d0694a2cd6a46e3838874.tar.bz2 passt-21ea343b465ac9aec74d0694a2cd6a46e3838874.tar.lz passt-21ea343b465ac9aec74d0694a2cd6a46e3838874.tar.xz passt-21ea343b465ac9aec74d0694a2cd6a46e3838874.tar.zst passt-21ea343b465ac9aec74d0694a2cd6a46e3838874.zip | |
tcp_vu: Support multibuffer frames in tcp_vu_send_flag()
Build the Ethernet, IP, and TCP headers on the stack instead of
directly in the buffer via pointer casts, then write them into the
iovec with IOV_PUSH_HEADER(). This mirrors the approach already used
in tcp_vu_prepare() and udp_vu_prepare().
Remove the vu_eth(), vu_ip(), vu_payloadv4() and vu_payloadv6() helpers
from vu_common.h, as they are no longer used anywhere.
Introduce tcp_vu_send_dup() to handle DUP_ACK duplication using
vu_collect() and iov_memcpy() instead of a plain memcpy(), so that
the duplicated frame is also properly scattered across multiple iovecs.
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Jon Maloy <jmaloy@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
