diff options
author | Mark McLoughlin <markmc@redhat.com> | 2009-10-06 12:17:16 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-06 14:36:13 -0500 |
commit | dc1c9fe8b759d4e70222d8f94838a6f6ef5c4ef1 (patch) | |
tree | 8fd31fed4bc434f8c726d09512f770f58b7796e7 /hw | |
parent | c59c7ea94796a4fce2fe79b8f9aa3628dc2e0b2a (diff) | |
download | hqemu-dc1c9fe8b759d4e70222d8f94838a6f6ef5c4ef1.zip hqemu-dc1c9fe8b759d4e70222d8f94838a6f6ef5c4ef1.tar.gz |
Final net cleanup after conversion to QemuOpts
Now that net_client_init() has no users, kill it off and rename
net_client_init_from_opts().
There is no further need for the old code in net_client_parse() either.
We use qemu_opts_parse() 'firstname' facitity for that. Instead, move
the special handling of the 'vmchannel' type there.
Simplify the vl.c code into merely call net_client_parse() for each
-net command line option and then calling net_init_clients() later
to iterate over the options and create the clients.
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/pci-hotplug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci-hotplug.c b/hw/pci-hotplug.c index 7af4f29..c38a127 100644 --- a/hw/pci-hotplug.c +++ b/hw/pci-hotplug.c @@ -51,7 +51,7 @@ static PCIDevice *qemu_pci_hot_add_nic(Monitor *mon, qemu_opt_set(opts, "type", "nic"); - ret = net_client_init_from_opts(mon, opts); + ret = net_client_init(mon, opts); if (ret < 0) return NULL; if (nd_table[ret].devaddr) { |