qemu-cr16/net
William Hooper 79b6a98587 net/vmnet: Pad short Ethernet frames
At least on macOS 12.7.2, vmnet doesn't pad Ethernet frames, such as the
host's ARP replies, to the minimum size (60 bytes before the frame check
sequence) defined in IEEE Std 802.3-2022, so guests' Ethernet device
drivers may drop them with "frame too short" errors.

This patch calls eth_pad_short_frame() to add padding, as in net/tap.c
and net/slirp.c. Thanks to Bin Meng, Philippe Mathieu-Daudé, and Phil
Dennis-Jordan for reviewing earlier versions.

Signed-off-by: William Hooper <wsh@wshooper.org>
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2058
Reviewed-by: Phil Dennis-Jordan <phil@philjordan.eu>
Message-ID: <20241102205653.30476-1-wsh@wshooper.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
2024-12-31 21:21:34 +01:00
..
can
af-xdp.c
announce.c
checksum.c net: checksum: Convert data to void * 2024-11-25 13:59:50 +08:00
clients.h
colo-compare.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
colo-compare.h
colo-stubs.c
colo.c
colo.h
dgram.c
dump.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
eth.c
filter-buffer.c
filter-mirror.c
filter-replay.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
filter-rewriter.c
filter.c
hub.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
hub.h
l2tpv3.c
meson.build net: fix build when libbpf is disabled, but libxdp is enabled 2024-10-28 14:37:25 +08:00
net-hmp-cmds.c
net.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
netmap.c
queue.c
slirp.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
socket.c
stream.c net/stream: deprecate 'reconnect' in favor of 'reconnect-ms' 2024-10-28 14:37:25 +08:00
tap-bsd.c
tap-linux.c
tap-linux.h
tap-solaris.c
tap-stub.c
tap-win32.c net/tap-win32: Fix gcc 14 format truncation errors 2024-10-28 14:37:25 +08:00
tap.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
tap_int.h
trace-events
trace.h
util.c
util.h
vde.c
vhost-user-stub.c
vhost-user.c
vhost-vdpa-stub.c
vhost-vdpa.c migration: Drop migration_is_setup_or_active() 2024-10-31 15:48:18 -04:00
vmnet-bridged.m
vmnet-common.m net/vmnet: Pad short Ethernet frames 2024-12-31 21:21:34 +01:00
vmnet-host.c
vmnet-shared.c
vmnet_int.h