]> git.proxmox.com Git - mirror_qemu.git/commit
virtio-net: fix offload ctrl endian
authorJason Wang <jasowang@redhat.com>
Fri, 14 Jul 2017 12:08:18 +0000 (20:08 +0800)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 24 Aug 2017 23:07:16 +0000 (18:07 -0500)
commit9527514ceb2383f269927cf81e604597078a0684
tree128fed0e6857552bdd3420f6a3487f0183d4dc7d
parent2a7526b0ce649b5c3b06790b9ea7a7b318d38ef4
virtio-net: fix offload ctrl endian

Spec said offloads should be le64, so use virtio_ldq_p() to guarantee
valid endian.

Fixes: 644c98587d4c ("virtio-net: dynamic network offloads configuration")
Cc: qemu-stable@nongnu.org
Cc: Dmitry Fleytman <dfleytma@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
(cherry picked from commit 189ae6bb5ce1f5a322f8691d00fe942ba43dd601)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/net/virtio-net.c