qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [6219] add missing MAC address to info_str for some NICs (Mark McLoughlin)
@ 2009-01-07 17:47 Anthony Liguori
  2009-01-07 19:00 ` Stefan Weil
  0 siblings, 1 reply; 4+ messages in thread
From: Anthony Liguori @ 2009-01-07 17:47 UTC (permalink / raw)
  To: qemu-devel

Revision: 6219
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6219
Author:   aliguori
Date:     2009-01-07 17:47:15 +0000 (Wed, 07 Jan 2009)

Log Message:
-----------
add missing MAC address to info_str for some NICs (Mark McLoughlin)

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

Modified Paths:
--------------
    trunk/hw/mcf_fec.c
    trunk/hw/smc91c111.c
    trunk/hw/stellaris_enet.c
    trunk/hw/virtio-net.c

Modified: trunk/hw/mcf_fec.c
===================================================================
--- trunk/hw/mcf_fec.c	2009-01-07 17:46:21 UTC (rev 6218)
+++ trunk/hw/mcf_fec.c	2009-01-07 17:47:15 UTC (rev 6219)
@@ -455,4 +455,5 @@
     s->vc = qemu_new_vlan_client(nd->vlan, nd->model,
                                  mcf_fec_receive, mcf_fec_can_receive, s);
     memcpy(s->macaddr, nd->macaddr, 6);
+    qemu_format_nic_info_str(n->vc, s->macaddr);
 }

Modified: trunk/hw/smc91c111.c
===================================================================
--- trunk/hw/smc91c111.c	2009-01-07 17:46:21 UTC (rev 6218)
+++ trunk/hw/smc91c111.c	2009-01-07 17:47:15 UTC (rev 6219)
@@ -706,5 +706,6 @@
 
     s->vc = qemu_new_vlan_client(nd->vlan, nd->model,
                                  smc91c111_receive, smc91c111_can_receive, s);
+    qemu_format_nic_info_str(s->vc, s->macaddr);
     /* ??? Save/restore.  */
 }

Modified: trunk/hw/stellaris_enet.c
===================================================================
--- trunk/hw/stellaris_enet.c	2009-01-07 17:46:21 UTC (rev 6218)
+++ trunk/hw/stellaris_enet.c	2009-01-07 17:47:15 UTC (rev 6219)
@@ -396,9 +396,11 @@
     s->irq = irq;
     memcpy(s->macaddr, nd->macaddr, 6);
 
-    if (nd->vlan)
+    if (nd->vlan) {
         s->vc = qemu_new_vlan_client(nd->vlan, nd->model,
                                      stellaris_enet_receive, stellaris_enet_can_receive, s);
+        qemu_format_nic_info_str(s->vc, s->macaddr);
+    }
 
     stellaris_enet_reset(s);
     register_savevm("stellaris_enet", -1, 1,

Modified: trunk/hw/virtio-net.c
===================================================================
--- trunk/hw/virtio-net.c	2009-01-07 17:46:21 UTC (rev 6218)
+++ trunk/hw/virtio-net.c	2009-01-07 17:47:15 UTC (rev 6219)
@@ -318,6 +318,8 @@
     n->vc = qemu_new_vlan_client(nd->vlan, nd->model,
                                  virtio_net_receive, virtio_net_can_receive, n);
 
+    qemu_format_nic_info_str(n->vc, n->mac);
+
     n->tx_timer = qemu_new_timer(vm_clock, virtio_net_tx_timer, n);
     n->tx_timer_active = 0;
     n->mergeable_rx_bufs = 0;

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-01-08  9:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-07 17:47 [Qemu-devel] [6219] add missing MAC address to info_str for some NICs (Mark McLoughlin) Anthony Liguori
2009-01-07 19:00 ` Stefan Weil
2009-01-07 20:00   ` Anthony Liguori
2009-01-08  9:45     ` Mark McLoughlin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).