diff options
author | Amos Kong <akong@redhat.com> | 2013-10-17 16:38:34 +0800 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-10-18 13:28:09 +0200 |
commit | 655d3b63b036b70714adbdae685055f1bda0f8f1 (patch) | |
tree | ecc63ae5853998a6f03b0120b9376e74aa05a7fa /hw/net/rtl8139.c | |
parent | 1680d485777ecf436d724631ea8722cc0c66990e (diff) | |
download | qemu-655d3b63b036b70714adbdae685055f1bda0f8f1.zip qemu-655d3b63b036b70714adbdae685055f1bda0f8f1.tar.gz qemu-655d3b63b036b70714adbdae685055f1bda0f8f1.tar.bz2 |
net: update nic info during device reset
macaddr is reset during device reset, but nic info
isn't updated, this problem exists in e1000 & rtl8139
Signed-off-by: Amos Kong <akong@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw/net/rtl8139.c')
-rw-r--r-- | hw/net/rtl8139.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/net/rtl8139.c b/hw/net/rtl8139.c index c31199f..9b4a650 100644 --- a/hw/net/rtl8139.c +++ b/hw/net/rtl8139.c @@ -1214,6 +1214,7 @@ static void rtl8139_reset(DeviceState *d) /* restore MAC address */ memcpy(s->phys, s->conf.macaddr.a, 6); + qemu_format_nic_info_str(qemu_get_queue(s->nic), s->phys); /* reset interrupt mask */ s->IntrStatus = 0; |