From 655d3b63b036b70714adbdae685055f1bda0f8f1 Mon Sep 17 00:00:00 2001 From: Amos Kong Date: Thu, 17 Oct 2013 16:38:34 +0800 Subject: 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 Acked-by: Michael S. Tsirkin Signed-off-by: Stefan Hajnoczi --- hw/net/rtl8139.c | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/net/rtl8139.c') diff --git a/hw/net/rtl8139.c b/hw/net/rtl8139.c index c31199f8c8..9b4a6501d7 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; -- cgit v1.2.1