From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQAx4-0006G7-CN for qemu-devel@nongnu.org; Sun, 29 Sep 2013 02:58:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VQAwy-0002VS-Cz for qemu-devel@nongnu.org; Sun, 29 Sep 2013 02:57:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36933) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQAwy-0002VN-4t for qemu-devel@nongnu.org; Sun, 29 Sep 2013 02:57:52 -0400 Date: Sun, 29 Sep 2013 10:00:10 +0300 From: "Michael S. Tsirkin" Message-ID: <1380437951-21788-10-git-send-email-mst@redhat.com> References: <1380437951-21788-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1380437951-21788-1-git-send-email-mst@redhat.com> Subject: [Qemu-devel] [PULL 09/14] virtio-net: fix up HMP NIC info string on reset List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori When mac is updated on reset, info string has stale data. Fix it up. Signed-off-by: Michael S. Tsirkin --- hw/net/virtio-net.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index dd41008..22dbd05 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); } -- MST