]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/m68k/q800: use qemu_find_nic_info()
authorDavid Woodhouse <dwmw@amazon.co.uk>
Mon, 23 Oct 2023 08:37:45 +0000 (09:37 +0100)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 2 Feb 2024 16:23:47 +0000 (16:23 +0000)
commit3fb8ae838b649cb629af88bada030a84c95c2722
treebf6586f9cb70d05c1a00a2cecd44ca2653f7285b
parent6e32426f68e8d7c05a9f5b5546cb336f415cae89
hw/m68k/q800: use qemu_find_nic_info()

If a corresponding NIC configuration was found, it will have a MAC address
already assigned, so use that. Else, generate and assign a default one.

Using qemu_find_nic_info() is simpler than the alternative of using
qemu_configure_nic_device() and then having to fetch the "mac" property
as a string and convert it.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Thomas Huth <thuth@redhat.com>
hw/m68k/q800.c