* [Qemu-devel] [7157] Remove NICInfo from e1000 and mipsnet state (Mark McLoughlin)
@ 2009-04-17 18:06 Anthony Liguori
0 siblings, 0 replies; only message in thread
From: Anthony Liguori @ 2009-04-17 18:06 UTC (permalink / raw)
To: qemu-devel
Revision: 7157
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7157
Author: aliguori
Date: 2009-04-17 18:06:42 +0000 (Fri, 17 Apr 2009)
Log Message:
-----------
Remove NICInfo from e1000 and mipsnet state (Mark McLoughlin)
NICInfo isn't used after initialization, so remove it from the driver
state structures.
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Modified Paths:
--------------
branches/stable_0_10/hw/e1000.c
branches/stable_0_10/hw/mipsnet.c
Modified: branches/stable_0_10/hw/e1000.c
===================================================================
--- branches/stable_0_10/hw/e1000.c 2009-04-17 18:06:38 UTC (rev 7156)
+++ branches/stable_0_10/hw/e1000.c 2009-04-17 18:06:42 UTC (rev 7157)
@@ -75,7 +75,6 @@
typedef struct E1000State_st {
PCIDevice dev;
VLANClientState *vc;
- NICInfo *nd;
int mmio_index;
uint32_t mac_reg[0x8000];
@@ -1078,7 +1077,6 @@
pci_register_io_region((PCIDevice *)d, 1, IOPORT_SIZE,
PCI_ADDRESS_SPACE_IO, ioport_map);
- d->nd = nd;
memmove(d->eeprom_data, e1000_eeprom_template,
sizeof e1000_eeprom_template);
for (i = 0; i < 3; i++)
@@ -1099,7 +1097,7 @@
e1000_receive, e1000_can_receive, d);
d->vc->link_status_changed = e1000_set_link_status;
- qemu_format_nic_info_str(d->vc, d->nd->macaddr);
+ qemu_format_nic_info_str(d->vc, nd->macaddr);
register_savevm(info_str, -1, 2, nic_save, nic_load, d);
d->dev.unregister = pci_e1000_uninit;
Modified: branches/stable_0_10/hw/mipsnet.c
===================================================================
--- branches/stable_0_10/hw/mipsnet.c 2009-04-17 18:06:38 UTC (rev 7156)
+++ branches/stable_0_10/hw/mipsnet.c 2009-04-17 18:06:42 UTC (rev 7157)
@@ -35,7 +35,6 @@
uint8_t tx_buffer[MAX_ETH_FRAME_SIZE];
qemu_irq irq;
VLANClientState *vc;
- NICInfo *nd;
} MIPSnetState;
static void mipsnet_reset(MIPSnetState *s)
@@ -248,7 +247,6 @@
register_ioport_read(base, 36, 4, mipsnet_ioport_read, s);
s->irq = irq;
- s->nd = nd;
if (nd && nd->vlan) {
s->vc = qemu_new_vlan_client(nd->vlan, nd->model, nd->name,
mipsnet_receive, mipsnet_can_receive, s);
@@ -256,7 +254,7 @@
s->vc = NULL;
}
- qemu_format_nic_info_str(s->vc, s->nd->macaddr);
+ qemu_format_nic_info_str(s->vc, nd->macaddr);
mipsnet_reset(s);
register_savevm("mipsnet", 0, 0, mipsnet_save, mipsnet_load, s);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-17 18:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-17 18:06 [Qemu-devel] [7157] Remove NICInfo from e1000 and mipsnet state (Mark McLoughlin) Anthony Liguori
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).