kernel_optimize_test/drivers/vhost
Michael S. Tsirkin e407f39afd vhost: fix performance on LE hosts
commit 2751c9882b ("vhost: cross-endian
support for legacy devices") introduced a minor regression: even with
cross-endian disabled, and even on LE host, vhost_is_little_endian is
checking is_le flag so there's always a branch.

To fix, simply check virtio_legacy_is_little_endian first.

Cc: Greg Kurz <gkurz@linux.vnet.ibm.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-10-27 20:17:03 -07:00
..
Kconfig vhost: cross-endian support for legacy devices 2015-06-01 15:48:55 +02:00
Makefile
net.c vhost: move features to core 2015-09-16 12:48:07 +03:00
scsi.c virtio: fixes on top of 4.3-rc1 2015-09-18 09:28:20 -07:00
test.c vhost: move features to core 2015-09-16 12:48:07 +03:00
test.h
vhost.c vhost: fix error handling for memory region alloc 2015-07-27 18:05:05 +03:00
vhost.h vhost: fix performance on LE hosts 2015-10-27 20:17:03 -07:00
vringh.c