mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
hw/net/fsl_etsec: Set default MAC address
Use default MAC address if none is specified by property as done by most other network interface models. Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Reviewed-by: Bernhard Beschow <shentey@gmail.com> Acked-by: Bernhard Beschow <shentey@gmail.com> Message-ID: <8bd7ca691bd502b5fd761615d9af805e783fba36.1748012109.git.balaton@eik.bme.hu> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
ea585b1022
commit
3c32fa9fb2
1 changed files with 1 additions and 0 deletions
|
@ -389,6 +389,7 @@ static void etsec_realize(DeviceState *dev, Error **errp)
|
|||
{
|
||||
eTSEC *etsec = ETSEC_COMMON(dev);
|
||||
|
||||
qemu_macaddr_default_if_unset(&etsec->conf.macaddr);
|
||||
etsec->nic = qemu_new_nic(&net_etsec_info, &etsec->conf,
|
||||
object_get_typename(OBJECT(dev)), dev->id,
|
||||
&dev->mem_reentrancy_guard, etsec);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue