From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [6219] add missing MAC address to info_str for some NICs (Mark McLoughlin)
Date: Wed, 07 Jan 2009 17:47:15 +0000 [thread overview]
Message-ID: <E1LKcUt-0007gH-NG@cvs.savannah.gnu.org> (raw)
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;
next reply other threads:[~2009-01-07 17:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-07 17:47 Anthony Liguori [this message]
2009-01-07 19:00 ` [Qemu-devel] [6219] add missing MAC address to info_str for some NICs (Mark McLoughlin) Stefan Weil
2009-01-07 20:00 ` Anthony Liguori
2009-01-08 9:45 ` Mark McLoughlin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1LKcUt-0007gH-NG@cvs.savannah.gnu.org \
--to=anthony@codemonkey.ws \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).