From 948ecf219c032e3483b35ba4e162e5eee17d8b77 Mon Sep 17 00:00:00 2001 From: Jason Wang Date: Wed, 30 Jan 2013 19:12:24 +0800 Subject: 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 Signed-off-by: Anthony Liguori --- hw/e1000.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/e1000.c') diff --git a/hw/e1000.c b/hw/e1000.c index de2c7009b3..bb150c67dc 100644 --- a/hw/e1000.c +++ b/hw/e1000.c @@ -1249,7 +1249,7 @@ pci_e1000_uninit(PCIDevice *dev) qemu_free_timer(d->autoneg_timer); memory_region_destroy(&d->mmio); memory_region_destroy(&d->io); - qemu_del_net_client(qemu_get_queue(d->nic)); + qemu_del_nic(d->nic); } static NetClientInfo net_e1000_info = { -- cgit v1.2.3