vhost/net: force len for TX to host endian
authorMichael S. Tsirkin <mst@redhat.com>
Fri, 24 Oct 2014 08:49:27 +0000 (11:49 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 9 Dec 2014 10:05:29 +0000 (12:05 +0200)
vhost/net keeps a copy of the used ring in host memory but (ab)uses
the length field for internal house-keeping. This works because the
length in the used ring for tx is always 0. In order to suppress sparse
warnings, we force native endianness here.
Note that these values are never exposed to guests.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Jason Wang <jasowang@redhat.com>
drivers/vhost/net.c

Simple merge