mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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:
parent
d2364ee424
commit
704a76fcd2
6 changed files with 15 additions and 15 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue