vhost: fix mergeable bufs on BE hosts
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 24 Oct 2012 18:37:51 +0000 (20:37 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 30 Oct 2012 23:27:00 +0000 (23:27 +0000)
commite18dbfae927d33d746f6bf8b14f2d030c12b3ba7
tree21463684c478350e93e6c3b466fac6c19091b964
parent6a026352765b0830d1e6f1fa2a8c1c0499fc1508
vhost: fix mergeable bufs on BE hosts

commit 910a578f7e9400a78a3b13aba0b4d2df16a2cb05 upstream.

We copy head count to a 16 bit field, this works by chance on LE but on
BE guest gets 0. Fix it up.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Alexander Graf <agraf@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/vhost/net.c