Revision af4c828e hw/virtio-net.c

b/hw/virtio-net.c
219 219
                        (features >> VIRTIO_NET_F_GUEST_ECN)  & 1,
220 220
                        (features >> VIRTIO_NET_F_GUEST_UFO)  & 1);
221 221
    }
222
    if (!n->nic->nc.peer ||
223
        n->nic->nc.peer->info->type != NET_CLIENT_TYPE_TAP) {
224
        return;
225
    }
226
    if (!tap_get_vhost_net(n->nic->nc.peer)) {
227
        return;
228
    }
229
    return vhost_net_ack_features(tap_get_vhost_net(n->nic->nc.peer), features);
222 230
}
223 231

  
224 232
static int virtio_net_handle_rx_mode(VirtIONet *n, uint8_t cmd,

Also available in: Unified diff