summaryrefslogtreecommitdiffstats
path: root/hw/pcnet-pci.c
diff options
context:
space:
mode:
authorJason Wang2013-01-30 12:12:22 +0100
committerAnthony Liguori2013-02-01 18:02:55 +0100
commitb356f76de31e343121cdab3a01b39182edce9519 (patch)
tree917613c9d0047ba2b4b67a5a4e6146c62b2a62d7 /hw/pcnet-pci.c
parentnet: tap: use abort() instead of assert(0) (diff)
downloadqemu-b356f76de31e343121cdab3a01b39182edce9519.tar.gz
qemu-b356f76de31e343121cdab3a01b39182edce9519.tar.xz
qemu-b356f76de31e343121cdab3a01b39182edce9519.zip
net: introduce qemu_get_queue()
To support multiqueue, the patch introduce a helper qemu_get_queue() which is used to get the NetClientState of a device. The following patches would refactor this helper to support multiqueue. Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/pcnet-pci.c')
-rw-r--r--hw/pcnet-pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pcnet-pci.c b/hw/pcnet-pci.c
index a94f642136..54a849daae 100644
--- a/hw/pcnet-pci.c
+++ b/hw/pcnet-pci.c
@@ -279,7 +279,7 @@ static void pci_pcnet_uninit(PCIDevice *dev)
memory_region_destroy(&d->io_bar);
qemu_del_timer(d->state.poll_timer);
qemu_free_timer(d->state.poll_timer);
- qemu_del_net_client(&d->state.nic->nc);
+ qemu_del_net_client(qemu_get_queue(d->state.nic));
}
static NetClientInfo net_pci_pcnet_info = {