aboutsummaryrefslogtreecommitdiff
path: root/hw/pcnet-pci.c
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2013-01-30 19:12:24 +0800
committerAnthony Liguori <aliguori@us.ibm.com>2013-02-01 11:03:01 -0600
commit948ecf219c032e3483b35ba4e162e5eee17d8b77 (patch)
tree610f53d9ed92e5154057a4040a44d3d05c971020 /hw/pcnet-pci.c
parentcc1f0f45425d0cca41ad421623f92bebc93a21a9 (diff)
downloadqemu-948ecf219c032e3483b35ba4e162e5eee17d8b77.zip
qemu-948ecf219c032e3483b35ba4e162e5eee17d8b77.tar.gz
qemu-948ecf219c032e3483b35ba4e162e5eee17d8b77.tar.bz2
net: intorduce qemu_del_nic()
To support multiqueue nic, this patch separate the nic destructor from qemu_del_net_client() to a new helper qemu_del_nic() since the mapping bettween NiCState and NetClientState were not 1:1 in multiqueue. The following patches would refactor this function to support multiqueue nic. 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 26c90bf..df63b22 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(qemu_get_queue(d->state.nic));
+ qemu_del_nic(d->state.nic);
}
static NetClientInfo net_pci_pcnet_info = {