You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/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>
3 weeks ago
..
can net/can: Remove unused struct 'CanBusState' 7 months ago
af-xdp.c net/af-xdp.c: Don't leak sock_fds array in net_init_af_xdp() 10 months ago
announce.c qapi net: Elide redundant has_FOO in generated C 2 years ago
checksum.c net: checksum: Convert data to void * 2 months ago
clients.h net: add initial support for AF_XDP network backend 1 year ago
colo-compare.c include: Rename sysemu/ -> system/ 1 month ago
colo-compare.h Add the function of colo_compare_cleanup 4 years ago
colo-stubs.c colo: move stubs out of stubs/ 9 months ago
colo.c net/colo.c: Fix the pointer issue reported by Coverity. 2 years ago
colo.h net/colo.c: Fix the pointer issue reported by Coverity. 2 years ago
dgram.c win32: replace closesocket() with close() wrapper 2 years ago
dump.c include: Rename sysemu/ -> system/ 1 month ago
eth.c net/eth: Clean up local variable shadowing 1 year ago
filter-buffer.c netfilter: Use class properties 4 years ago
filter-mirror.c net/filter: Optimize filter_send to coroutine 3 years ago
filter-replay.c include: Rename sysemu/ -> system/ 1 month ago
filter-rewriter.c net/colo: Fix a "double free" crash to clear the conn_list 3 years ago
filter.c misc/other: spelling fixes 1 year ago
hub.c include: Rename sysemu/ -> system/ 1 month ago
hub.h net: Remove deprecated [hub_id name] tuple of 'hostfwd_add' / 'hostfwd_remove' 5 years ago
l2tpv3.c net: Increase L2TPv3 buffer to fit jumboframes 2 years ago
meson.build net: fix build when libbpf is disabled, but libxdp is enabled 3 months ago
net-hmp-cmds.c net: Move hmp_info_network() to net-hmp-cmds.c 2 years ago
net.c include: Rename sysemu/ -> system/ 1 month ago
netmap.c tap: Remove qemu_using_vnet_hdr() 8 months ago
queue.c net: Remove deadcode 4 months ago
slirp.c include: Rename sysemu/ -> system/ 1 month ago
socket.c net: socket: remove net_init_socket() 2 years ago
stream.c net/stream: deprecate 'reconnect' in favor of 'reconnect-ms' 3 months ago
tap-bsd.c tap: Remove tap_probe_vnet_hdr_len() 8 months ago
tap-linux.c tap: Remove tap_probe_vnet_hdr_len() 8 months ago
tap-linux.h tap: Add USO support to tap device. 1 year ago
tap-solaris.c tap: Remove tap_probe_vnet_hdr_len() 8 months ago
tap-stub.c tap: Remove tap_probe_vnet_hdr_len() 8 months ago
tap-win32.c net/tap-win32: Fix gcc 14 format truncation errors 3 months ago
tap.c include: Rename sysemu/ -> system/ 1 month ago
tap_int.h tap: Remove tap_probe_vnet_hdr_len() 8 months ago
trace-events vdpa: add trace event for vhost_vdpa_net_load_mq 11 months ago
trace.h trace: switch position of headers to what Meson requires 4 years ago
util.c
util.h Replace config-time define HOST_WORDS_BIGENDIAN 3 years ago
vde.c net: introduce qemu_set_info_str() function 2 years ago
vhost-user-stub.c vhost-net-user: add stubs for when no virtio-net device is present 6 years ago
vhost-user.c hw/char: Have FEWatchFunc handlers return G_SOURCE_CONTINUE/REMOVE 1 year ago
vhost-vdpa-stub.c vhost-net-vdpa: add stubs for when no virtio-net device is present 3 years ago
vhost-vdpa.c migration: Drop migration_is_setup_or_active() 3 months ago
vmnet-bridged.m net/vmnet: Drop ifdef for macOS versions older than 12.0 7 months ago
vmnet-common.m net/vmnet: Pad short Ethernet frames 3 weeks ago
vmnet-host.c net/vmnet: Drop ifdef for macOS versions older than 12.0 7 months ago
vmnet-shared.c net/vmnet: Drop ifdef for macOS versions older than 12.0 7 months ago
vmnet_int.h vmnet: stop recieving events when VM is stopped 2 years ago