virtio-net: fix offload ctrl endian
commit189ae6bb5ce1f5a322f8691d00fe942ba43dd601
authorJason Wang <jasowang@redhat.com>
Fri, 14 Jul 2017 12:08:18 +0000 (14 20:08 +0800)
committerJason Wang <jasowang@redhat.com>
Mon, 17 Jul 2017 12:13:56 +0000 (17 20:13 +0800)
tree75e7026c81e3a321a13c44112ef21a90b4d0bf3c
parent5f997fd17b9be6a662fa7b5cc1305076cd6c8894
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>
hw/net/virtio-net.c