]> git.ipfire.org Git - thirdparty/qemu.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)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 16 Apr 2025 06:41:22 +0000 (09:41 +0300)
commitaf01cf195ba106fe039ab320ce9e8074b4ddd841
treeb8d6c552e9b783834090c13637d5dfba88b03b59
parent7f637d2922e702673c672573a931941a5098388f
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>
(cherry picked from commit e28fbd1c525db21f0502b85517f49504c9f9dcd8)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/net/virtio-net.c