From: Paolo Abeni Date: Fri, 10 Oct 2025 14:12:57 +0000 (+0200) Subject: virtio-net: Advertise UDP tunnel GSO support by default X-Git-Tag: v10.2.0-rc1~12^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1c79ab6937ae938d3dfd4da1c01afc7eb599857e;p=thirdparty%2Fqemu.git virtio-net: Advertise UDP tunnel GSO support by default Allow bidirectional aggregated traffic for UDP encapsulated flows. Add the needed compatibility entries to avoid migration issues vs older QEMU instances. Signed-off-by: Paolo Abeni Acked-by: Jason Wang Tested-by: Lei Yang Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Message-Id: <9c500fbcd2cf29afd1826b1ac906f9d5beac3601.1760104079.git.pabeni@redhat.com> --- diff --git a/hw/core/machine.c b/hw/core/machine.c index 0580550e12..06e0c9a179 100644 --- a/hw/core/machine.c +++ b/hw/core/machine.c @@ -40,6 +40,10 @@ GlobalProperty hw_compat_10_1[] = { { TYPE_ACPI_GED, "x-has-hest-addr", "false" }, + { TYPE_VIRTIO_NET, "host_tunnel", "off" }, + { TYPE_VIRTIO_NET, "host_tunnel_csum", "off" }, + { TYPE_VIRTIO_NET, "guest_tunnel", "off" }, + { TYPE_VIRTIO_NET, "guest_tunnel_csum", "off" }, }; const size_t hw_compat_10_1_len = G_N_ELEMENTS(hw_compat_10_1); diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index 17ed0ef919..3b85560f6f 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/virtio-net.c @@ -4299,19 +4299,19 @@ static const Property virtio_net_properties[] = { VIRTIO_DEFINE_PROP_FEATURE("host_tunnel", VirtIONet, host_features_ex, VIRTIO_NET_F_HOST_UDP_TUNNEL_GSO, - false), + true), VIRTIO_DEFINE_PROP_FEATURE("host_tunnel_csum", VirtIONet, host_features_ex, VIRTIO_NET_F_HOST_UDP_TUNNEL_GSO_CSUM, - false), + true), VIRTIO_DEFINE_PROP_FEATURE("guest_tunnel", VirtIONet, host_features_ex, VIRTIO_NET_F_GUEST_UDP_TUNNEL_GSO, - false), + true), VIRTIO_DEFINE_PROP_FEATURE("guest_tunnel_csum", VirtIONet, host_features_ex, VIRTIO_NET_F_GUEST_UDP_TUNNEL_GSO_CSUM, - false), + true), }; static void virtio_net_class_init(ObjectClass *klass, const void *data)