search for: get_tap_fd

Displaying 2 results from an estimated 2 matches for "get_tap_fd".

2007 Dec 21
2
[Virtio-for-kvm] [PATCH 7/7] userspace virtio
...gt;vdev, 128, virtio_net_handle_tx); n->can_receive = 0; memcpy(n->mac, nd->macaddr, 6); - n->vc = qemu_new_vlan_client(nd->vlan, virtio_net_receive, + n->vc = qemu_new_vlan_client(nd->vlan, NULL, virtio_net_can_receive, n); + n->tap_fd = get_tap_fd(n->vc->vlan->first_client->opaque); + n->next = VirtIONetHead; + //push the device on top of the list + VirtIONetHead = n; return &n->vdev; } diff --git a/qemu/sysemu.h b/qemu/sysemu.h index e20159d..4bedd11 100644 --- a/qemu/sysemu.h +++ b/qemu/sysemu.h @@ -6...
2007 Dec 21
2
[Virtio-for-kvm] [PATCH 7/7] userspace virtio
...gt;vdev, 128, virtio_net_handle_tx); n->can_receive = 0; memcpy(n->mac, nd->macaddr, 6); - n->vc = qemu_new_vlan_client(nd->vlan, virtio_net_receive, + n->vc = qemu_new_vlan_client(nd->vlan, NULL, virtio_net_can_receive, n); + n->tap_fd = get_tap_fd(n->vc->vlan->first_client->opaque); + n->next = VirtIONetHead; + //push the device on top of the list + VirtIONetHead = n; return &n->vdev; } diff --git a/qemu/sysemu.h b/qemu/sysemu.h index e20159d..4bedd11 100644 --- a/qemu/sysemu.h +++ b/qemu/sysemu.h @@ -6...