]> git.proxmox.com Git - qemu.git/blobdiff - hw/etraxfs_eth.c
net: allow NICs to be connected to netdevs
[qemu.git] / hw / etraxfs_eth.c
index 54786c5e97bcb5b077bbc2f63f7cbc0b090aa416..a411dab0dd9cf64f4c74a6cd7d64e82dcc7cf0f2 100644 (file)
@@ -590,7 +590,8 @@ void *etraxfs_eth_init(NICInfo *nd, target_phys_addr_t base, int phyaddr)
        eth->ethregs = cpu_register_io_memory(eth_read, eth_write, eth);
        cpu_register_physical_memory (base, 0x5c, eth->ethregs);
 
-       eth->vc = nd->vc = qemu_new_vlan_client(nd->vlan, nd->model, nd->name,
+       eth->vc = nd->vc = qemu_new_vlan_client(nd->vlan, nd->netdev,
+                                                nd->model, nd->name,
                                                 eth_can_receive, eth_receive,
                                                 NULL, eth_cleanup, eth);
        eth->vc->opaque = eth;