diff options
| author | Stefano Brivio <sbrivio@redhat.com> | 2025-11-03 11:16:12 +0100 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2025-12-08 04:47:46 +0100 |
| commit | 0cb8f90036540527133ad55a5976d2f639cce8da (patch) | |
| tree | 7a409deba0cea0186f5e9969b7a18b3027d63448 /test/lib/git:/passt.top | |
| parent | 68b0a36d6a40aece53df9d2a0a89addd07eda515 (diff) | |
| download | passt-0cb8f90036540527133ad55a5976d2f639cce8da.tar passt-0cb8f90036540527133ad55a5976d2f639cce8da.tar.gz passt-0cb8f90036540527133ad55a5976d2f639cce8da.tar.bz2 passt-0cb8f90036540527133ad55a5976d2f639cce8da.tar.lz passt-0cb8f90036540527133ad55a5976d2f639cce8da.tar.xz passt-0cb8f90036540527133ad55a5976d2f639cce8da.tar.zst passt-0cb8f90036540527133ad55a5976d2f639cce8da.zip | |
tcp, udp: Pad batched frames for vhost-user modes to 60 bytes (802.3 minimum)
For both TCP and UDP, instead of just expecting the first provided
buffer to be large enough to contain the headers we need (from 42
bytes for UDP data over IPv4 to 82 bytes for TCP with options over
IPv6), change that assumption to make sure that buffers are anyway
at least ETH_ZLEN-sized buffers (60 bytes).
This looks reasonable because there are no known vhost-user
hypervisor implementations that would give us smaller buffers than
that, and we would anyway hit an assertion failure with IPv6 if we
ever had less than 60 bytes per buffer.
At this point, all we need to do is to pad the first (and only)
buffer, should data and headers use less than that.
Link: https://bugs.passt.top/show_bug.cgi?id=166
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'test/lib/git:/passt.top')
0 files changed, 0 insertions, 0 deletions
