]> git.proxmox.com Git - qemu.git/blobdiff - hw/qdev.c
net: allow NICs to be connected to netdevs
[qemu.git] / hw / qdev.c
index 906e8975540581f79b11b88b6cc69a5a43844f63..20f931c1c6477112b6080fc91e71d0bf0d0eae49 100644 (file)
--- a/hw/qdev.c
+++ b/hw/qdev.c
@@ -370,8 +370,10 @@ VLANClientState *qdev_get_vlan_client(DeviceState *dev,
 {
     NICInfo *nd = dev->nd;
     assert(nd);
-    nd->vc = qemu_new_vlan_client(nd->vlan, nd->model, nd->name, can_receive,
-                                  receive, receive_iov, cleanup, opaque);
+    nd->vc = qemu_new_vlan_client(nd->vlan, nd->netdev,
+                                  nd->model, nd->name,
+                                  can_receive, receive, receive_iov,
+                                  cleanup, opaque);
     return nd->vc;
 }