Revision b946a153 hw/e1000.c
b/hw/e1000.c | ||
---|---|---|
1033 | 1033 |
excluded_regs[i] - 4); |
1034 | 1034 |
} |
1035 | 1035 |
|
1036 |
static void |
|
1037 |
e1000_cleanup(VLANClientState *vc) |
|
1038 |
{ |
|
1039 |
E1000State *d = vc->opaque; |
|
1040 |
|
|
1041 |
unregister_savevm("e1000", d); |
|
1042 |
} |
|
1043 |
|
|
1036 | 1044 |
static int |
1037 | 1045 |
pci_e1000_uninit(PCIDevice *dev) |
1038 | 1046 |
{ |
... | ... | |
1094 | 1102 |
memset(&d->tx, 0, sizeof d->tx); |
1095 | 1103 |
|
1096 | 1104 |
d->vc = qemu_new_vlan_client(nd->vlan, nd->model, nd->name, |
1097 |
e1000_receive, e1000_can_receive, d); |
|
1105 |
e1000_receive, e1000_can_receive, |
|
1106 |
e1000_cleanup, d); |
|
1098 | 1107 |
d->vc->link_status_changed = e1000_set_link_status; |
1099 | 1108 |
|
1100 | 1109 |
qemu_format_nic_info_str(d->vc, nd->macaddr); |
Also available in: Unified diff