tools/virtio: fix byteswap logic
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 29 Nov 2015 11:03:23 +0000 (13:03 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 7 Dec 2015 15:28:10 +0000 (17:28 +0200)
commit55564a02b2ad4dab0c29fd9391d5118592c7fdc8
treecdcc34872c297785cc99d12e40ce79bbfd47a2ad
parent40c172e5d99220c8a99dbc4468e792c74494a596
tools/virtio: fix byteswap logic

commit cf561f0d2eb74574ad9985a2feab134267a9d298 ("virtio: introduce
virtio_is_little_endian() helper") changed byteswap logic to
skip feature bit checks for LE platforms, but didn't
update tools/virtio, so vring_bench started failing.

Update the copy under tools/virtio/ (TODO: find a way to avoid this code
duplication).

Cc: Greg Kurz <gkurz@linux.vnet.ibm.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tools/virtio/linux/virtio_config.h