Michael S. Tsirkin e407f39afd vhost: fix performance on LE hosts
commit 2751c9882b947292fcfb084c4f604e01724af804 ("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
..
2013-07-07 17:33:44 +03:00
2015-09-16 12:48:07 +03:00
2015-09-18 09:28:20 -07:00
2015-09-16 12:48:07 +03:00
2010-12-09 16:00:21 +02:00
2015-10-27 20:17:03 -07:00
2014-12-15 23:49:28 +02:00