diff options
author | Michael S. Tsirkin | 2013-09-17 10:45:36 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2013-09-22 08:30:22 +0200 |
commit | 702d66a813dd84afd7c3d1ad8cbdcc8e3449bcd9 (patch) | |
tree | 9492567fb47723a2cf3643434cc928cf6d6cec48 /hw | |
parent | pci: remove explicit check to 64K ioport size (diff) | |
download | qemu-702d66a813dd84afd7c3d1ad8cbdcc8e3449bcd9.tar.gz qemu-702d66a813dd84afd7c3d1ad8cbdcc8e3449bcd9.tar.xz qemu-702d66a813dd84afd7c3d1ad8cbdcc8e3449bcd9.zip |
virtio-net: fix up HMP NIC info string on reset
When mac is updated on reset, info string has stale data.
Fix it up.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/net/virtio-net.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index dd41008fb0..22dbd053d4 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/virtio-net.c @@ -314,6 +314,7 @@ static void virtio_net_reset(VirtIODevice *vdev) n->mac_table.uni_overflow = 0; memset(n->mac_table.macs, 0, MAC_TABLE_ENTRIES * ETH_ALEN); memcpy(&n->mac[0], &n->nic->conf->macaddr, sizeof(n->mac)); + qemu_format_nic_info_str(qemu_get_queue(n->nic), n->mac); memset(n->vlans, 0, MAX_VLAN >> 3); } |