]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6d90108a312e2a196a69bdad71ec9f054347b21f
treecdcc34872c297785cc99d12e40ce79bbfd47a2ad
parent0ddb409ec564059e56929e3b6f72253e332c2824
tools/virtio: fix byteswap logic

commit 7ffe771b29f24751496ff760e89583b4b464e412 ("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