]> 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)
commitd3da407c64ef24bde934d6bb4d06aaa7038c4096
treecdcc34872c297785cc99d12e40ce79bbfd47a2ad
parent8414969b8f76d193dafb1838331532231bbabf01
tools/virtio: fix byteswap logic

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