]> xenbits.xensource.com Git - people/aperard/qemu-dm.git/commit
Revert "virtio-net: Copy received header to buffer"
authorAntoine Damhet <adamhet@scaleway.com>
Tue, 8 Apr 2025 14:53:33 +0000 (16:53 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 15 Apr 2025 12:24:48 +0000 (08:24 -0400)
commite28fbd1c525db21f0502b85517f49504c9f9dcd8
tree2e2e4ac84cf0571d7e5aaa392c1d4c1000726d55
parent8bdd3a0308ba8e8d20240ac06de8615959bcf00e
Revert "virtio-net: Copy received header to buffer"

This reverts commit 7987d2be5a8bc3a502f89ba8cf3ac3e09f64d1ce.

The goal was to remove the need to patch the (const) input buffer
with a recomputed UDP checksum by copying headers to a RW region and
inject the checksum there. The patch computed the checksum only from the
header fields (missing the rest of the payload) producing an invalid one
and making guests fail to acquire a DHCP lease.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2727
Cc: qemu-stable@nongnu.org
Signed-off-by: Antoine Damhet <adamhet@scaleway.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20250408145345.142947-1-adamhet@scaleway.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/net/virtio-net.c