aboutgitcodebugslistschat
path: root/test/tcp/git:
diff options
context:
space:
mode:
authorLaurent Vivier <lvivier@redhat.com>2026-05-20 17:18:27 +0200
committerStefano Brivio <sbrivio@redhat.com>2026-05-26 12:18:24 +0200
commit21ea343b465ac9aec74d0694a2cd6a46e3838874 (patch)
tree7cc7d0c5ab90724a7da6eafeaa0445f2d3d9a258 /test/tcp/git:
parentfeb9a11d757dd6c07c1b2d1db507e0dde237d78b (diff)
downloadpasst-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/tcp/git:')
0 files changed, 0 insertions, 0 deletions