virtio: rename features -> guest_features

Rename features->guest_features. This is
what they are, avoid confusion with
host features which we also need to keep around.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Michael S. Tsirkin 2010-01-10 13:52:47 +02:00 committed by Anthony Liguori
parent d2364ee424
commit 704a76fcd2
6 changed files with 15 additions and 15 deletions

View file

@ -768,11 +768,11 @@ static int virtio_net_load(QEMUFile *f, void *opaque, int version_id)
if (n->has_vnet_hdr) {
tap_using_vnet_hdr(n->nic->nc.peer, 1);
tap_set_offload(n->nic->nc.peer,
(n->vdev.features >> VIRTIO_NET_F_GUEST_CSUM) & 1,
(n->vdev.features >> VIRTIO_NET_F_GUEST_TSO4) & 1,
(n->vdev.features >> VIRTIO_NET_F_GUEST_TSO6) & 1,
(n->vdev.features >> VIRTIO_NET_F_GUEST_ECN) & 1,
(n->vdev.features >> VIRTIO_NET_F_GUEST_UFO) & 1);
(n->vdev.guest_features >> VIRTIO_NET_F_GUEST_CSUM) & 1,
(n->vdev.guest_features >> VIRTIO_NET_F_GUEST_TSO4) & 1,
(n->vdev.guest_features >> VIRTIO_NET_F_GUEST_TSO6) & 1,
(n->vdev.guest_features >> VIRTIO_NET_F_GUEST_ECN) & 1,
(n->vdev.guest_features >> VIRTIO_NET_F_GUEST_UFO) & 1);
}
}