Revision bcbabae8 hw/vhost_net.c

b/hw/vhost_net.c
50 50
    if (!(net->dev.features & (1 << VIRTIO_RING_F_INDIRECT_DESC))) {
51 51
        features &= ~(1 << VIRTIO_RING_F_INDIRECT_DESC);
52 52
    }
53
    if (!(net->dev.features & (1 << VIRTIO_RING_F_EVENT_IDX))) {
54
        features &= ~(1 << VIRTIO_RING_F_EVENT_IDX);
55
    }
53 56
    if (!(net->dev.features & (1 << VIRTIO_NET_F_MRG_RXBUF))) {
54 57
        features &= ~(1 << VIRTIO_NET_F_MRG_RXBUF);
55 58
    }
......
65 68
    if (features & (1 << VIRTIO_RING_F_INDIRECT_DESC)) {
66 69
        net->dev.acked_features |= (1 << VIRTIO_RING_F_INDIRECT_DESC);
67 70
    }
71
    if (features & (1 << VIRTIO_RING_F_EVENT_IDX)) {
72
        net->dev.acked_features |= (1 << VIRTIO_RING_F_EVENT_IDX);
73
    }
68 74
    if (features & (1 << VIRTIO_NET_F_MRG_RXBUF)) {
69 75
        net->dev.acked_features |= (1 << VIRTIO_NET_F_MRG_RXBUF);
70 76
    }

Also available in: Unified diff