mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07: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:
committed by
Philippe Mathieu-Daudé
parent
ea585b1022
commit
3c32fa9fb2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user