]> git.proxmox.com Git - qemu.git/commit
net: Consistently use qemu_macaddr_default_if_unset
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 20 Jul 2011 10:20:22 +0000 (12:20 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Sat, 23 Jul 2011 15:19:50 +0000 (10:19 -0500)
commit6eed18568d985f5e091e96205f5ebf50fb823f4e
treeb2069a38fe9ff3a6baa5efdde005555582bbca57
parent44e798d3959e6face1adc0b2fd1873b25f66a5e7
net: Consistently use qemu_macaddr_default_if_unset

Drop the open-coded MAC assignment from net_init_nic and replace it with
standard qemu_macaddr_default_if_unset which is also used by qdev. That
avoid creating colliding MACs when instantiating NICs via different
mechanisms.

This change requires to store the MAC as MACAddr in NICInfo, and the
remaining nd_table users need to be updated.

Based on suggestion by Peter Maydell.

CC: Markus Armbruster <armbru@redhat.com>
CC: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/dp8393x.c
hw/etraxfs_eth.c
hw/mcf_fec.c
hw/mipsnet.c
hw/qdev.c
hw/stellaris.c
hw/xen_devconfig.c
net.c
net.h