diff options
| author | Laurent Vivier <lvivier@redhat.com> | 2026-02-23 15:10:26 +0100 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2026-02-24 12:05:58 +0100 |
| commit | de5b69491fdd95bd7d997a4b7c2972bd3ceb1101 (patch) | |
| tree | ca71417cc535796b039f3bd17638828007619441 /test | |
| parent | c3201915c436b47481396f0ae95b52efed084ef3 (diff) | |
| download | passt-de5b69491fdd95bd7d997a4b7c2972bd3ceb1101.tar passt-de5b69491fdd95bd7d997a4b7c2972bd3ceb1101.tar.gz passt-de5b69491fdd95bd7d997a4b7c2972bd3ceb1101.tar.bz2 passt-de5b69491fdd95bd7d997a4b7c2972bd3ceb1101.tar.lz passt-de5b69491fdd95bd7d997a4b7c2972bd3ceb1101.tar.xz passt-de5b69491fdd95bd7d997a4b7c2972bd3ceb1101.tar.zst passt-de5b69491fdd95bd7d997a4b7c2972bd3ceb1101.zip | |
tcp_vu: vu_pad() expects l2 length
tcp_vu_hdrlen() returns a length that includes VNET_HLEN (the virtio
net header), but vu_pad() expects the Layer-2 frame length, which
should not include the virtio header. Passing the inflated length
means short frames aren't padded to the minimum 60-byte Ethernet
frame size (ETH_ZLEN).
Subtract VNET_HLEN from hdrlen when computing the l2 length passed
to vu_pad() in both tcp_vu_send_flag() and tcp_vu_data_from_sock().
Fixes: 0cb8f9003654 ("tcp, udp: Pad batched frames for vhost-user modes to 60 bytes (802.3 minimum)")
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions
